All Questions

Filter by
Sorted by
Tagged with
0
votes
1answer
9 views

org-mode: link to tag/target inside a source code block

I'd like to place a link to a tag or target inside a source code block. #+BEGIN_SRC emacs-lisp (use-package evil :ensure t :config ; enable per default (evil-mode ...
1
vote
0answers
8 views

unable to display SVG file containing utf-8 charactersI

I like to edit SVG drawings directly in Emacs. It is very convenient to toggle display of source versus drawing with the sequence Ctrl-C ctrl-C. But, when the file contains text in utf-8, Emacs cannot ...
0
votes
0answers
7 views

How can I get org-mode clocktables to display (and sum up) appointments, like meetings for example?

Well, it is basically what the title says. I have the need to use clocktables to generate work reports, but I would like my meetings and other appointments to show up in the clocktables as well. I ...
2
votes
0answers
12 views

mu4e: Problem sending email with Gmail

I use mu4e to handle my 3 email accounts - Exchange, Posteo, Gmail. While I have no problem sending emails with Exchange and Posteo, I encounter the following issue when sending via Gmail: Debugger ...
1
vote
1answer
140 views

How to treat underscore as part of the word in C/C++ modes?

There are questions with nearly the exact same title, but their accepted answers do not work for C/C++ mode so this is a different question. When I type (modify-syntax-entry ?_ "w") and do M-x eval-...
0
votes
1answer
49 views

Make buffer unreachable

This may be a silly question, but how can I make a buffer unreachable? I have enabled live-py-mode. Every time I try to edit my python file it evaluates the code, which is a well and good but it's a ...
1
vote
0answers
6 views

Org mode evaluating propertized string removes properties

See the following code block: #+BEGIN_SRC emacs-lisp (setq s #("abc" 0 3 (face (:foreground "red")))) (pp s) #+END_SRC #+RESULTS: : #("abc" 0 3 : (face : (:foreground "red"))) #+BEGIN_SRC ...
0
votes
0answers
10 views

LaTeX footnote cross-referencing

This is a bug discovered when trying to make footnotes cross-reference one another. * Cross-Referencing Issue I have a footnote[fn:a7c8d549e5724e0:This is a footnote. See also [fn:f52362a5a5f18c7].]...
1
vote
1answer
19 views

Org ASCII export with indentation preserved

Open your EMACS -Q, enter org mode, and #+begin_src emacs-lisp (setf x '(a b c d e f)) #+end_src This is how it will be aligned after org-edit-special (C-c '). Now ...
1
vote
1answer
27 views

can emacs memoize regexps?

This is really a question about implementation rather than anything a user of GNU Emacs would be interested in. Emacs regexps are represented as strings. There is a nice rx DSL for constructing ...
1
vote
1answer
15 views

How to temporarily disable/reset idle timers?

I have a package which uses mouse motion, currently the idle timers aren't reset on mouse motion - causing idle timers to run, even when from a user perspective - Emacs is not idle. How can I stop ...
0
votes
2answers
15 views

tramp — open shell prompt for existing connection

i started using the eldritch and mysterious tramp again because a user on here helped me fix it. (thanks michael: tramp runs on odt export --). i create org mode links to my commonly-used remote conf ...
0
votes
0answers
7 views

org odt export — edit Text Body style font

i run emacs 26.1, org 9.3. i would like to modify the font used by the Text Body style when i export a file to odt. i followed the instructions at https://orgmode.org/manual/Applying-custom-styles....
0
votes
0answers
12 views

How to use prefix C-SPC instead of prefix C-h, for `which-key-mode-map`?

I'd like to change the C-h prefix to C-SPC and so I added the following to my init.el, but it has no effect. (define-key which-key-mode-map (kbd "<C-SPC>") 'which-key-C-h-dispatch) Help ...
0
votes
0answers
12 views

How to Set Visit File Keystroke to Ask Root Password If Needed in Dired Mode

Trying here to accelerate root file editing via dired mode. That way thought in somehow adjust visit file keystroke f, as default, to either ask for root password or to enter it as root automatically....
0
votes
0answers
11 views

org-mode render a particular latex fragment without using cache

Is it possible to override the caching behaviour of org-latex-preview once and for a particular latex fragment? That is, how should I call the command if I want to regenerate the particular latex ...
0
votes
1answer
8 views

Org-export: Convenient input/pasting of style information with many lines

When exporting an Org buffer to HTML, how can I inject a <style>-tag with many lines of contents into the head of the HTML document? I know #+HTML_HEAD: and #+HTML_HEAD_EXTRA:. But that prefix ...
0
votes
0answers
13 views

How to find correct character encoding

I am unable to save a buffer due to a character encoding. I am doing exploratory data analysis using Org babel. Data is read from a file using Python and the results are printed to the buffer. #+...
2
votes
1answer
34 views

Is it possible to use emacsclient remotely?

I'd like to use emacsclient on my laptop to connect to an emacs server on my desktop. I think I know that the emacs server process listens to a unix socket in "/tmp/emacs${UID}". So I need to make a ...
0
votes
0answers
48 views

How to fix window configuration?

I use spacemacs and sometimes I need to fix window configuration 4 windows. Could somebody help with it?
1
vote
1answer
37 views

How can emacs org-mode execute shell code remotely as sudo?

My self-documenting maintainance scripts, where I document how systems have been setup, I need to execute stuff as sudo/root and want the results automatically added to the document. But for safety ...
0
votes
1answer
31 views

Enabling shr-external-rendering-functions Variable in EWW

Began using Emacs eww nowadays, but now seeking to adapt it better for Html websites. That way some user said to "buffer-locally setting the variable shr-external-rendering-functions", as of What EWW ...
0
votes
0answers
15 views

Enable trace-function from org-mode

I test the following procedure from org-mode #+name: case-2.1.1-factorial.el #+BEGIN_SRC elisp (defun factorial(n) (if (= n 1) 1 (* n (factorial (- n 1))))) (trace-function #'factorial) ...
0
votes
0answers
26 views

how can I re-use the window created by `display-buffer-in-side-window`?

I'm creating a window at the bottom of the frame with display-buffer-in-side-window and it displays a given buffer, I would like to have another buffer created but re-use that exact same window. How ...
0
votes
0answers
20 views

M-x shell truncates commands to 4096 characters

Using M-x shell, I have encountered a problem with commandlines being truncated to 4095 characters. Steps to reproduce: perl -e 'print "0" x 5000 . "\n"' Select output for next command echo <5000 ...
0
votes
0answers
14 views

Communicating with an external process from a timer?

Is it possible to communicate with an external process from a timer? Currently Emacs prevents starting a process from a timer, so I was wondering of sending input to the stdin or getting output from ...
3
votes
1answer
48 views

Non-greedy regex group

This is related to my previous question over here. (replace-regexp "\\(\\[\\[\\)\\(zotero:.+\\]\\)\\(\\[.+,[《〈][^《〈]+[》〉]\\)?.+。\\(\\]\\]\\)" "\\1cite-\\2\\3\\4,頁") I'd like to use the above code ...
0
votes
0answers
8 views

org-babel python :session names matter

For example, I get #+BEGIN_SRC python :session sdfjkl :results output import numpy #+END_SRC #+RESULTS: : Python 3.8.0 (default, Oct 23 2019, 18:51:26) : [GCC 9.2.0] on linux : Type "help", "...
0
votes
1answer
26 views

symbol's value as variable is void: command, when using ibuffer-sidebar

I installed ibuffer-sidebar (https://github.com/jojojames/ibuffer-sidebar) and added the following to my ~/.emacs.d/init.el: (use-package "ibuffer-sidebar.el") (require 'ibuffer-sidebar) (setq ...
0
votes
1answer
21 views

Perform calculations in orgtbl with the LaTeX syntax?

This is an orgtbl table #+begin_src emacs-lisp :results none (setq calc-language 'latex) (calc-radians-mode) #+end_src #+attr_latex: :mode math |----------+-----+----------| | Fonction | var | ...
0
votes
0answers
16 views

How to add a note to an active timestamp representing a time interval?

For CLOCK entries, with the variable org-log-note-clock-out, I'll be prompted for a note whenever I clock out, which I can see on my agenda. Example of the entry: CLOCK: [2020-03-26 Thu 15:26]--[...
2
votes
0answers
28 views

Add a source reference to org blocks

During research, I often cite a passage from some website, a local document or org file. For context and later use, I always add the source reference after the block: * Public transport ** Bus Buses ...
2
votes
1answer
19 views

Is there a way to change order of the key in a hashtable?

Say i have following keys in hashtable: "first1" "second2" "third3" "forth4" Is there a way to put key "third3" at the top. So that when i run func hash-table-keys i get following list: ("third3" "...
2
votes
1answer
30 views

user-init-file Variable Value Doesn't Change

The Goal Place everything related to emacs in ~/.config/.emacs.d What I Have Done Created /usr/share/emacs/site-lisp/site-start.el which contain the following code: (setq user-init-file "~/.config/...
0
votes
1answer
16 views

How could I abort and apply space when company suggests completion?

While I am typing company shows suggestons. When I press space I want to abort suggestions and apply space, but instead it only does abort. Hence I need to press two times space to apply space. [Q] ...
0
votes
0answers
22 views

Overriding cquery's semantic highlighting of a specific keyword?

Say I've typedef'd static to static_global and I want it to use my keyword color. I'd do something like... (font-lock-add-keywords 'c-mode '(("static_global" . 'font-lock-...
0
votes
0answers
15 views

Unexpected face for `org-ellipsis`

Loading the following setting in an emacs -q session, and open the org file below, (custom-set-faces '(org-tag ((t (:background "gray95" :weight bold)))) '(org-ellipsis ((t nil)))) test.org #+...
0
votes
1answer
30 views

Org table date arithmetic with Lisp expressions

It's easy to do date arithmetic using org-mode table formulas. For example, if I enter this table: | [2020-01-01] | | | [2020-02-01] | | | [2020-03-01] | | #+TBLFM: $2=$1+1 ...and then do C-c C-c ...
0
votes
1answer
12 views

Couldn't resize project sidebar is doom emacs

I'm using doom emacs. I've enabled treemacs in ~/.doom.d/init.el I couldn't resize the project sidebar. I have tried this mac OS and opensuse 15.1 I get message <left-fringe> <mouse-drag-1&...
0
votes
1answer
34 views

Is it possible for multiple modes to combine their fontifications?

For example, a buffer has some major mode and it does its own fontification. If I turn on a minor mode A then it adds its own fontification which changes the existing fontification by changing the ...
0
votes
1answer
18 views

Emacs shell not picking aliases from bashrc

NOT Working: /bin/bash: Psu: command not found M-! cmd Psu Working M-! cmd ls .bashrc cat ~/.bashrc | grep Psu cat ~/.bashrc | grep aliases alias Psu='sudo pacman -Syyu' if [ -f ~/.bash_aliases ...
2
votes
0answers
16 views

How to make list-packages Help for dependency package show the dependee packages?

I use use-package to require the boxquote package into my GNU Emacs 26.3 running on Ubuntu 19.10, like this: (use-package boxquote :ensure t) In the list-packages buffer, I see the boxquote ...
1
vote
1answer
46 views

What EWW Emacs Web Brower Would Be Used For [closed]

Managed here to run eww, despite its requirements of libxml2-dev package BEFORE compiling and installing Emacs itself. Have already browsed some websites, including some simple ones, only with basic ...
2
votes
2answers
25 views

Can syntax parsing recognize the SQL '' (escape apostrophe/single quote) construct within SQL strings?

I am trying to enhance SQL mode such that editing of files of SQL code becomes more convenient, especially as far as jumping around is concerned (e.g. things like sql-goto-end-of-string etc.). I have ...
1
vote
1answer
26 views

abbreviations do not expand

My abbreviations are not expanding when I type the abbreviations I have the following in my ~/.emacs for initiating the abbrev mode (setq-default abbrev-mode t) (setq save-abbrevs t) (setq abbrev-...
0
votes
1answer
27 views

Using `dired-do-compress-to` with `tramp`

Within a eamcs -q session and in a tramp dired buffer and call dired-do-compress-to on a file, I got this eror zip I/O error: No such file or directory zip error: Could not create output file (/ssh:...
1
vote
0answers
35 views

Emacs freezes when using split-string in recursive function

I'm trying to figure out why my emacs keeps freezing when running this set of functions to split a string into a list of pairs. Is there some significant overhead happening when using string-split? Is ...
4
votes
1answer
56 views

Read first N lines of file into list

The general way this seems to be done using Elisp is to first read the entire file using something like insert-file-contents-literally or find-file-no-select, using split-string on a newline, and then ...
0
votes
1answer
27 views

Designate a speficied day of 20 days later

Strike "C-u C-c ." to insert the current datetime, <2020-03-25 Wed 09:56> How could I designate a accurate day of 20 days later, Currently, I invoke "Shift+ right-arrow" step-move the ...
0
votes
0answers
10 views

Spacemacs Java layer with backend disabled

I would like to use Java layer without using any backend. I don't need the auto-complete pop-up, as sometimes it slows me down or freezes Emacs. But I would like to use the code snippets that comes ...

15 30 50 per page
1
2 3 4 5
369