All Questions

Filter by
Sorted by
Tagged with
0 votes
0 answers
6 views

How do I get syntax highlighting in example blocks when exporting org-mode to HTML?

I have set org-src-fontify-natively to t, and have htmlize installed. But my example blocks still don't have syntax highlighting when exported to HTML. #+begin_example python print(8*8) #+end_example
  • 728
0 votes
0 answers
8 views

How to configure Emacs to support indented C preprocessor statements?

In some cases I deal with code that has heavily indented C preprocessor statements and want to setup Emacs to work with it without changing that indentation and follow the same indentation when having ...
  • 724
1 vote
1 answer
7 views

can't use `isearch-yank-word-or-char` in minibuffer-local-map?

I'd like to have occur's prompt in the minibuffer do the same that isearch does: C-w inserts the word at point in the main buffer into the minibuffer prompt. That keybinding, when doing isearch, calls ...
  • 429
0 votes
1 answer
27 views

Elisp, Move Point

In elisp, how can I move point to any of these locations? (let ((beg (progn (skip-syntax-backward "^ " (line-beginning-position)) (point))) (end (progn ...
0 votes
1 answer
13 views

expand org variable value in situ

Is there a way to link to an orgmode variable's value? Or at least export it? I can get a link to jump to the variable definition, but not display its value or export. for example the text in ...
0 votes
1 answer
29 views

Color emoji arrows in emacs

I have attempted to setup emacs 28.2 to display color emojis using the Noto Color Emoji font. According to a "Font Manager" program (provided by font-manager Debian package), the following ...
  • 1
0 votes
1 answer
64 views

How to access the elisp code of an Emacs BUFFER object?

The Emacs documentation does not to cover easy observable aspects of the in a window displayed buffer and the short explanation what a buffer is: 28 Buffers A buffer is a Lisp object containing text ...
  • 166
0 votes
0 answers
7 views

org-mode errors when trying to export a python code block to html

Org mode errors out when trying to export a python code block to html. This error seems to be specific to python, as json and bash src blocks work. Furthermore, I can export to latex, markdown and ...
0 votes
0 answers
4 views

Doom Emacs (helm +fuzzy) not working

How do I get fuzzy file searching working in Doom with helm? I found this: https://github.com/doomemacs/doomemacs/issues/1552#issuecomment-510105539 But it's several years old and does not work for me....
  • 157
0 votes
1 answer
17 views

In org-mode, how to exclude a heading from export only for some back-ends?

In org-mode, I can exclude a code blocks from HTML export with something like this: #+header: :eval (eval (if (string= org-export-current-backend "html") "no" "yes"))) #+...
  • 111
0 votes
1 answer
16 views

flycheck can't find header file even though flycheck-clang-include-path configured

I am using Doom Emacs as my editor for C. I'm trying to use glib in my C project and for that I'm including glib.h. I have added the include dirs displayed by pkg-config --cflags glib-2.0 to flycheck-...
  • 1
0 votes
1 answer
7 views

helm-projectile-recentf, "Can't rotate non image file"

When I hit M-r to get an exact match, helm-projectile-recentf, I get: Debugger entered--Lisp error: (cl-assertion-failed ((and (file-exists-p file) (string-match (image-file-name-regexp) file)) "...
0 votes
1 answer
28 views

Add "carriage returns" (extra line) after all entries in document [examples added]

I've noticed that Emacs will preserve an extra line (carriage return) between items, but if I manually edit the file, this extra spacing can fall apart. For example, I've found that entries need 2 ...
0 votes
0 answers
6 views

lsp-format-buffer :: No formatting changes provided

I'm trying to indent a C# file, but when I lsp-format-buffer, it just says No formatting changes provided ..in the echo area. Any way to figure out what that means?;)
1 vote
1 answer
13 views

Secondary Selection beginning end

How can I programmatically define a secondary selection with beginning and end defined?;) I try to look for this, but only find mouse usage;) Any pointers?;)
0 votes
1 answer
15 views

how to config highlight style in spacemacs as sublimetext did?

I used highlight-symbol to show all selected text in spacemacs, but that looks not very good as sublime text did as following pic: My question is that if spacemacs could use box style without color ...
  • 3
0 votes
2 answers
44 views

Regex to find and replace a specific character inside of multiple quoted strings in a string

Given an example string of JSON (formatted here for reading, actual input may or may not be formatted): { "page":1, "per_page":6, "total":12, "...
  • 127
0 votes
1 answer
41 views

Is there a way to convince Emacs 29 to use the initial directory to save setup information?

One of the powerful features of Emacs is that you can change almost any of its settings using provided interactive dialogs. With the in version 29 provided possibility to specify a directory to load ...
  • 166
0 votes
1 answer
14 views

How to make AUCTeX aware of my custom sty files in an inner folder

Is it possible to point AUCTeX to extra *.sty files I load from an inner folder? Currently, I don't have access to environments defined e.g. in amsmath. I realise the problem is AUCTeX does not seem ...
  • 117
0 votes
2 answers
138 views

Why does Emacs hold on to a not common sense meaning of the words: frame and window?

Below voluminously explained the context of the question stated in the question title: I have started to use Emacs very intensively some days ago and are still bumping into doing things the wrong way. ...
  • 166
0 votes
1 answer
27 views

How to get item names from lists in an org-mode file using ELisp

What I'm trying to do: Load a named org-mode file in the background Find a named heading in that file Locate the first list under that heading Get the names (as they appear in Emacs when I write them)...
  • 105
0 votes
1 answer
54 views

How to save what I see in an 'Emacs window'?

There is a nice concept of 'WYSIWYG' meaning 'What You See Is What You Get', but it seems that it is hard to get what I can see in an 'Emacs window' ('Emacs window' is what would in common sense be ...
  • 166
0 votes
0 answers
14 views

Function to paste in current buffer a document structure (template)

I would like to have different structures or skeletons for different articles in different Orgmode documents, e.g., article-AA.org would have certain header options for latex, then it would have a #+...
  • 145
0 votes
0 answers
26 views

How to programmatically invoke an org-capture template

Let's say I have the following template added to org-capture: (defvar my/org-todo-template "* %^{NUMBER} - %^{DESCR} [%] ** Contacts ** Fotos ** Tasks *** TODO Task a *** TODO Task b") (...
0 votes
0 answers
16 views

How to not fold everything when opening an org mode file?

The default behavior of emacs is to unfold everything when opening an org mode file, I want to prevent this from happening sense my org mode files have a lot of text to be hidden. Whenever I open an ...
0 votes
1 answer
15 views

ispell-init-process: Error: The encoding "nil" is not known

ispell-init-process fails When I try to correct a word with ispell, I got the following error: ispell-init-process: Error: The encoding "nil" is not known. This could also mean that the file ...
0 votes
0 answers
11 views

Wrong number of arguments: ((t) nil "Remove fringes in treemacs window."

I'm using treemacs as the file browser for my emacs. I've enabled kaolin-treemacs-theme for treemacs. (use-package kaolin-themes :config (load-theme 'kaolin-dark t) (kaolin-treemacs-theme)) My ...
2 votes
1 answer
47 views

`make-local-variable` Behaves Differently depending on Whether Variable is Special

Two examples (both are in the *scratch* buffer and under lexical scoping rule): _ (setq xx :default) (let ((xx :let)) (with-current-buffer (get-buffer-create "tmp") (make-local-...
  • 1,319
0 votes
0 answers
29 views

How can I set man-width for long lines in man-mode?

I am using GNU Emacs 28.2.50 along with emacsclient. I am using https://www.emacswiki.org/emacs/ManMode. When I have a smaller width size in a iTerm terminal, man-mode kind of messed up for long lines....
  • 1,090
1 vote
1 answer
32 views

Emacs/Tramp fails to connect with ssh key equiped with a passphrase

I have problem connecting via ssh using Tramp in Emacs on MS-Windows whenever the private ssh key I use is configured with a passphrase. Here's the problem : I. What works : On the command line ssh -...
0 votes
1 answer
55 views

How do I check if the current buffer has a treesit parser?

Starting with Emacs 29, we've got native TreeSitter support using treesit. My question is: how do I know I can use treesit-* functions in the current buffer? The feature check only checks if Emacs ...
0 votes
0 answers
6 views

How to use authinfo gpg when configuring a package with use-package

I want to use ejira in conjuntion with use-package as suggested in the readme: (use-package ejira :init (setq jiralib2-url "https://jira.mycorp.com" jiralib2-auth ...
  • 739
0 votes
0 answers
5 views

helm-projectile-recentf, Exclude Currently Open Buffer

When I use helm-projectile-recentf, it shows the currently open buffer in the list. Any way to not have it do that?;) Also, it seems to look at file modification, so if I just had a buffer open and ...
0 votes
1 answer
15 views

org-mark-subtree, but only the content and one node deep

I want to copy the contents of a heading, but only the content and not the heading and also not any levels deeper;) Is there any function made for this or do I have to start somehow with org-mark-...
0 votes
1 answer
51 views

how to exchange ESC with C-g in spacemacs

I used C-g to cancel operation in spacemacs, but feel ESC is a better way than C-g. I tried the following, but not work, spacemacs will report issue when startup: (define-key key-translation-map (kbd &...
  • 3
0 votes
2 answers
34 views

Why does shell command insert a newline in the output buffer?

I have this code: (with-output-to-temp-buffer OUTPUT_BUFFER (shell-command (format "unzip -p %s %s | cat" ZIP_FILE_NAME LOG_FILE_NAME) OUTPUT_BUFFER OUTPUT_BUFFER)) I read a .log ...
0 votes
0 answers
12 views

Can't create a footnote with a definition in org-mode

As the title says, I am unable to create a footnote that has a definition. According to the documentation, [fn:NAME: a definition] should be a valid footnote, but my Emacs doesn't recognize it. [fn:...
  • 810
0 votes
0 answers
13 views

What is the relationship between Evil registers and ordinary Emacs registers/kill-ring?

I use evil and have gotten used to accessing the registers via :registers (in normal-mode). This works fine for me except when I attempt to yank a URL or filename into a minibuffer prompt. In trying ...
0 votes
1 answer
12 views

git question: Why does git fetch not provide a fully updated local repo of Emacs?

More than a year ago I cloned Emacs: git clone git://git.savannah.gnu.org/emacs.git and since always kept it on date with git fetch git://git.savannah.gnu.org/emacs.git Well, at least I thought that ...
  • 498
1 vote
1 answer
37 views

lowercase `s` as prefix in `describe-bindings`

[MacOS, running 28.2 from emacsformacos.com] When I do describe-bindings I see that the "Global Bindings" includes a bunch of bindings with the prefix s - not S for "Shift". What ...
  • 113
0 votes
0 answers
17 views

How to execute org-mode source block asynchronously in session?

I have an org file with notes about how to setup my project. One of the notes has some shell scripts, like this: #+begin_src sh :dir ~/Workspace/MyProject :session cmake-setup cmake -B build-debug -S ....
  • 523
0 votes
0 answers
17 views

How to compute overtime, using clocktable or similar?

Beginning of this year, I started tracking my worktime in org-mode. I would like to see how much overtime I have accumulated. In the beginning of the year, I could still deal with it with a simple ...
  • 240
0 votes
1 answer
17 views

org-agenda-open-link does not open links in the org-agenda view buffer

Sometimes I use the diary instead of org-mode to add meetings to the org-agenda, and occasionally these include links to emails or websites in the standard org format: [[https://duckduckgo.com][link ...
  • 632
1 vote
1 answer
10 views

how to get ace-window to do row-major numbering of windows?

I use ace-window, and when I have at least two rows and columns of windows. When I invoke ace-window, it does column-major ordering of the windows: |----------+----------| | | | | ...
  • 429
0 votes
0 answers
16 views

org mode TAB doesn't unfold headings

I have the strangest problem - ever since reinstalling Doom I can only fold org headings but then they're stuck folded.. TAB doen't do anything, although I did check and it's still bound to org-cycle.....
0 votes
1 answer
41 views

How can I disable a package or a group of packages without the require statement?

My entire Emacs configuration is in one file named "init.el". The folding and unfolding is achieved with the outshine package. I would like to share my config with some of my colleagues and ...
  • 253
0 votes
0 answers
8 views

gpg failed to verify signature when install queue in offline environment

I am trying to install queue in an offline environment with a local package archive, which is a mirror of melpa and gnu elpa. However, the queue package, and any package depends on it, cannot be ...
0 votes
1 answer
22 views

how to unbind M-1 in spacemacs?

I used spacemacs for my work, now I need to unbind M-1 with following, but not work (global-unset-key (kbd "M-1")) I checked binding, it looks M-1 was used by winum-select-window-1.anyone ...
  • 3
0 votes
1 answer
19 views

misaligned column view headers

Similar topic here Since update to org-mode 9.4 misaligned column view headers I read that headers are using faces: org-column and org-column-title. Can I just delete those faces? I don't need them in ...
  • 451
4 votes
1 answer
41 views

cannot `lossage-size` a large number

emacs-28.2; win 11 $ emacs -Q If I use most-positive-fixnum: (lossage-size most-positive-fixnum) Emacs will emit: Value must be >= 100 in the echo area. If I use a modest number: (lossage-size (/...

15 30 50 per page
1
2 3 4 5
507