All Questions

Filter by
Sorted by
Tagged with
2 votes
2 answers
39 views

How do I insert an http link into org-mode with its title?

Is there a way to have org-mode automatically set the description from the html page's when inserting a link into org-mode?
Oin's user avatar
  • 167
0 votes
0 answers
4 views

mu4e crashing when drag-and-dropping file attachment in mu4e:compose mode

I am running Emacs 29.1 (9.0) on Mac OS Ventura 13.5 and have recently upgraded to mu4e 1.10.7. Since after the upgrade, Emacs crashes whenever I try to drag-and-drop a file into mu4e:compose mode in ...
user41442's user avatar
0 votes
0 answers
15 views

Doom Emacs : Creating project using dired not working

I'm a new to emacs. So I just try to learn by using it. And What I'm trying to do is just making simple project. I make a directory in dired using + command. And inside that directory I create ....
codeDog's user avatar
1 vote
1 answer
53 views

how to programmatically create list of org-roam nodes with given tag?

I'd like to create (meta) node that contains all references to nodes given org roam tag. For example, Let's say I've tens of org-roam-nodes about python-programming-language (each node has tag python)....
Garid's user avatar
  • 565
0 votes
0 answers
7 views

Texinfo produces "see" for @ref commands in Info-mode

I'm trying to produce a manual in Info format and I'm getting a little confused about @ref and the *note/see markers. I thought that for HTML output, @ref would behave like @xref and produce the 'see'...
nonreligious's user avatar
0 votes
2 answers
69 views

How enable tree-sitter modes (*-ts-mode) that aren't built-in?

My Emacs (29.1) comes with the some tree-sitter modes: c-ts-mode go-ts-mode js-ts-mode ... I downloaded the compiled .dll and they work out of box. However, there are some languages that tree-sitter ...
Lai Yu-Hsuan's user avatar
0 votes
1 answer
39 views

AucTeX: Keybinding for compiling document

Is there a command, for which I can set a keybind for compiling the document? The command (TeX-command-master, bound to C-c C-c) gives you a list of options but it's rather inefficient. I'm looking ...
AmberWing's user avatar
0 votes
0 answers
19 views

org-mode: How do I insert correctly escaped text using elisp?

I want to insert some code using elisp into org-babel source blocks. This needs some escaping, such as replacing * with ,*. Is there a builtin insert function that handles these escape rules ...
HappyFace's user avatar
  • 771
2 votes
1 answer
30 views

How to stop Spacemacs from asking for a required layer installation

Each time I open a .toml file I'm asked in the minibuffer: Support for toml-mode requires installation of layer rust, do you want to install it? (y or n) n How can I stop that question?
jjk's user avatar
  • 749
0 votes
1 answer
19 views

When using ssh in term-mode, how do I get the remote system's hostname for emacs?

I regularly use term-mode then ssh into a remote machine to run bash commands. I want to display the remote machine's hostname in my modeline. I added the relevant code for the modeline but I'm having ...
Matt's user avatar
  • 3
0 votes
1 answer
38 views

How does emacs/eglot decide which syntax element to highlight and how could I change it?

For example, I'm writing a Lua file. I noticed that the table keys are not highlighted: I'd like to make the table keys in a different color than values, like what Emacs does for YAML: But I don't ...
Lai Yu-Hsuan's user avatar
0 votes
1 answer
40 views

Make Emacs re-check a buffer's modified state?

I've got a file open in Emacs, with unsaved changes. I run a function in Emacs which first writes the current changes to a separate temporary file, then delegates to an interactive shell command which ...
mtraceur's user avatar
  • 206
0 votes
1 answer
33 views

Corfu: Why does <tab> shows a corfu popup?

I have this configuration: (setq tab-always-indent 'complete) (global-corfu-mode 1) Nothing else should have grabbed the <tab> key. When I do C-h k, then <tab>, I get that it is bould to ...
Gradient's user avatar
  • 211
1 vote
1 answer
58 views

Docstring text substitution for nadvice macros `add-function` and `advice-add`

Starting with Emacs 29, the doc strings of macros add-function and advice-add are constructed, using substitution of a common part into a "<<>>" placeholder. C-h f add-function: ...
shynur's user avatar
  • 4,247
1 vote
2 answers
31 views

Filter out command completions with specific prefixes

I am using command completions, and would like to 'filter' out certain built-in packages. For example, typing "text"; In these completions, I would like to filter out/hide the entries that ...
Disorderless's user avatar
0 votes
1 answer
32 views

Configuring org-msg to use Lualatex in emails

I'm using Lualatex with a custom package and have org-mode configured to it using (setq org-latex-compiler "lualatex") I also put all the Latex-packages I usually need into a custom one and ...
Alexander Praehauser's user avatar
0 votes
0 answers
12 views

desktop-save mode prevents Emacs from refreshing

I'm using Emacs 29.1 on Windows. I've found desktop-save is problematic. My configuration is: (use-package desktop :init (setq desktop-dirname "~/.emacs.d/desktop/" ...
Lai Yu-Hsuan's user avatar
0 votes
0 answers
26 views

org mode, collect today's tasks into a buffer and edit them

In short, is there a agenda-like view that is also editable (without going to the original org file) For instance, I'd like to create a view which shows all the todo items which have deadline today. (...
eugene's user avatar
  • 489
0 votes
1 answer
99 views

How to disable automatic appearance of *Warnings* buffer in Emacs?

I use Emacs (version 28.1 on Windows 11-64bits) with AUCTeX to work with my LaTeX documents. The directory of files on which I'm working is synchronized in real time with a Dropbox cloud. This means ...
user17911's user avatar
  • 131
0 votes
0 answers
14 views

Syntax highlighting for source blocks inside special blocks

Syntax highlighting doesn't work for source blocks that are nested inside special blocks: #+BEGIN_test #+begin_src js return 14 #+end_src #+RESULTS: : 14 #+END_test #+begin_src js return 14 #+...
feelsbadman's user avatar
0 votes
1 answer
14 views

Strange behavior of win desktop shortcut

The emacs installer puts a shortcut on the desktop that works perfectly. If I open the emacs/bin folder, choose emacs.exe an the "Send to desktop" it creates a different kind of shortcut. ...
user3267886's user avatar
0 votes
0 answers
27 views

disable built-in flymake completely

I'm running emacs-29.1 on ubuntu-23.10 (installed from https://ppa.launchpadcontent.net/ubuntuhandbook1/emacs/ubuntu/), and it has flymake built-in and default to running. There are similar questions ...
r2evans's user avatar
  • 245
1 vote
1 answer
19 views

How to ignore some directories with find-grep-dired?

When I search with find-grep-dired it also searches /Library/ directory and finds hundreds of cached links. Is there a way to ignore /Library/ directory? I found this : M-x customize-option <return&...
zeynel's user avatar
  • 181
-1 votes
0 answers
50 views

Allow writing to help buffer

Because a help buffer is always read-only, one has to change buffer-read-only to nil. But consider the two functions below. maces1 should be the appropriate implementation because it set buffer-read-...
Dilna's user avatar
  • 1,183
0 votes
1 answer
15 views

Org mode not returning last evaluated line of lisp

I can't figure out why evaluating this lisp code with C-c C-c doesn't return 832040 and instead returns the function name FIB: #+begin_src lisp (defun fib (n) "Return the nth Fibonacci ...
Ryan Fleck's user avatar
0 votes
1 answer
42 views

how to load a file in init.el

I have a ~/.emacs.d/init.el which includes:- (load-file "blabla.el") blabla.el is in ~/.emacs.d/ When I start emacs I get this error:- File is missing: Cannot open load file, No such file or ...
balanga's user avatar
  • 21
1 vote
3 answers
52 views

The mystery of the global font-size change shortcut

The official Emacs documentation says: ...to change the sizes of the fonts globally, type C-x C-M-+, C-x C-M-=, C-x C-M-- or C-x C-M-0,...1 Unfortunately, when I type C-x C-M-+ on my laptop's ...
kjo's user avatar
  • 3,155
0 votes
1 answer
35 views

Move cursor down on auto-insert

#+SETUPFILE: ~/.emacs.d/org-templates/level-2.org I have the above line auto-inserted on new org files. Is there a way to make the cursor move to the next line? Now it stays at the beginning of the ...
zeynel's user avatar
  • 181
0 votes
0 answers
21 views

How to see if a keybinding is used in any mode? [duplicate]

For example, I once set <C-j> as <C-x>, only to find out <C-j> is used for org-forward-heading-same-level in org-mode. I know <C-h> k shows a keybinding's usage in current mode....
Lai Yu-Hsuan's user avatar
0 votes
1 answer
17 views

Turn off show-trailing-whitespace in Echo Area

When I run (setq-default show-trailing-whitespace t) on startup, the Echo Area is affected. I can usually turn this off with hooks, e.g. (add-hook 'minibuffer-setup-hook (lambda () (setq show-...
faulty_ram_sticks's user avatar
0 votes
1 answer
22 views

Getting dired to open an xterm instance without waiting

I like to use dired-do-shell-command to open audio and video files in an independent terminal using the default command gnome-terminal -- mplayer * and this works great. But now I've changed my ...
Alexander Praehauser's user avatar
1 vote
1 answer
52 views

Macro breaks only in `eval-expression` (`M-:`)

I have a macro which unpacks a list into variables, as if by setq: (unpack (a b c) '(1 2 3)) is roughly comparable to (setq a 1) (setq b 2) (setq c 3) The way I did that initially was by having the ...
mtraceur's user avatar
  • 206
0 votes
0 answers
8 views

Org mode keyword completion with pcomplete showing uppercase and lowercase duplicates

Invoking complete-symbol after #+ in an Org buffer uses pcomplete to display the following completion candidates list: ORG: org: BIND: bind: DATE: date: etc. I would like to remove the duplication of ...
user615536's user avatar
0 votes
0 answers
13 views

Cannot save as root with tramp: “Unlocking file: Permission denied”

I'm using Emacs 27.1 in the terminal with tramp version 2.4.3.27.1. This is on a remote server over SSH. I can load files as root using tramp paths such as: /sudo:root@hostname:/etc/hosts or /sudo::/...
Ian Mackinnon's user avatar
1 vote
1 answer
46 views

How to create separate buffers from the ouput of grep?

Is there any way to create separate buffers for each file grep locates when running something like grep 'blabla' *.c
balanga's user avatar
  • 21
0 votes
0 answers
22 views

color org-agenda entries by level

My org agenda (I use it as a todo-list without dates with the alltodo type, generating a list of all todo entries for each file) has many entries with many subheadings (which can again have multiple ...
swhalemwo's user avatar
0 votes
0 answers
15 views

reopen-with-sudo command that works through tramp?

I have tried to define this command: (defun etc-reopen-with-sudo () (interactive) (let* ((vec (tramp-dissect-file-name (buffer-file-name (current-buffer)))) (method (tramp-file-name-method ...
Joseph Garvin's user avatar
1 vote
1 answer
35 views

Quail-based Japanese conversion error

The following error that I am reporting appears both in emacs-27.2 and emacs-28.2. This question is written under the assumption that the reader is familiar with Quail and with Japanese syllabary. ...
HippoMan's user avatar
  • 594
2 votes
0 answers
39 views

Magit error: Wrong type argument: listp

I recently updated magit and since then I haven't been able to create commits with it. When I try to create a commit in the magit-status interface, I get the error: command-execute: Wrong type ...
burek's user avatar
  • 33
1 vote
0 answers
26 views

How can I make magit aware of an upstream branch?

I have a preexisting (github) repository with 2 branches: master and release. I successfully set my own local copy of the master branch to origin/master but when I try to set the release branch (using ...
user39350's user avatar
0 votes
0 answers
9 views

Changing context does not update the mu4e-main buffer

I managed to set up mu4e with two accounts, however I'm having issues switching context. I press ; and select the context I wish, and I can also see in the modeline that the context has changed. ...
marcc's user avatar
  • 1
0 votes
1 answer
58 views

buffer-read-only when using button

I cannot understand why the following gives an error. What can I do to solve the problem when I press on the button. (buffer-read-only #<buffer *Help*>) insert("> Graphic Organisation \...
Dilna's user avatar
  • 1,183
0 votes
0 answers
41 views

Why is emacs looking in `~/` for `.emacs`? [duplicate]

I'm using /usr/local/share/emacs/site-lisp/.emacs as my initialisation file. When I start emacs I get:- Warning (initialization): An error occurred while loading ‘~/.emacs’: Why is emacs looking in '~/...
balanga's user avatar
  • 21
0 votes
0 answers
17 views

Emacs ignores display-fill-column-indicator-character settings

I have these settings in my init.el: (global-display-fill-column-indicator-mode 1) (setq-default fill-column 120) (setq-default display-fill-column-indicator t) (setq-default display-fill-column-...
Lai Yu-Hsuan's user avatar
0 votes
1 answer
21 views

Search path for lisp files

When starting emacs using the initialisation file /usr/local/share/emacs/site-lisp/.emacs what is the default search path for lisp files if I use the default value of load-path (I don't change the ...
balanga's user avatar
  • 21
0 votes
1 answer
37 views

Is the '$' (end of line anchor) somehow concurrent with the '\n' (newline)? Please explain these results

In normal regex, I would expect the following to be true: (should (equal (string-match "^abc$\nx" "abc\nx ") 0)) ;; nope! nil (should (equal (string-match "^abc\n$x" &...
Jared's user avatar
  • 101
0 votes
0 answers
20 views

Save LaTeX/AucTeX generated auxiliary files to a separate directory EXCEPT for the PDF file

I am using AucTex in Emacs to compile my LaTeX files. Is there a way to keep just the PDF file in the current directory and send all the other auxiliary files to a separate folder? I have set TeX-...
sm10's user avatar
  • 11
0 votes
1 answer
54 views

Why is Doom Emacs GUI not accepting keyboard input?

Noob question. I downloaded Doom Emacs following the installation instructions in the documentation. Now when I run the emacs command, it opens up the Doom Emacs window. Unfortunately, as I try ...
Parker Spitzer's user avatar
0 votes
1 answer
17 views

moving cursor forward-sexp goes one char further in evil mode

When I want to highlight the following region (a ( b ( c ) ) ) ) I get (a ( b ( c ) ) ) ) I mark the beginning and do forward-sexp (or sp-forward-sexp, which results in the same outcome) In, insert ...
eugene's user avatar
  • 489
0 votes
1 answer
31 views

Can someone help me with lsp C++20 features recognition?

Lsp clangd does not recognise c++20 features in my Emacs. I use flycheck and it highlights something as import <iostream> std::format is not supported either and so on. Can someone tell me how ...
weuoimi's user avatar

15 30 50 per page