All Questions

17,567 questions
Filter by
Sorted by
Tagged with
2 views

eglot+clangd leaves .d files in the project's root

I am using eglot+clangd but noticed when visiting any file a (filename.d) file gets generated in the root of the project. Is there a way to specify a .clangd-cache/ for these files to reside in?
4 views

Change default colors in f90-mode

Could you let me know where the default colors in f90-mode are defined and how to change them?
6 views

How to replace the buffer without slowing down the undo system?

Say I have a command that operates on the entire buffer. The simple solution is to: Run the command taking the entire buffer as input. Store the output. Clear the current buffer. Insert the new ...
3 views

Enabling flyspell-prog-mode starts flyspell-mode instead

I've been playing with flyspell lately and with my recently established setup for spell-check, I wanted to enable it for all modes. I found that flyspell-mode and flyspell-prog-mode are best for text-...
6 views

Prepend to block of text, but ignore blank lines

How to add the string 'export ' to the beginning of each line of this text, with emacs: RBENV_VERSION="2.4.0" CARE_MANAGER_EMAIL=support@example.com AUTHORIZE_NET_API_LOGIN_ID=example ...
9 views

Modify emacs calendar starting week number

I want to change emacs default calendar week number so that it starts at a manually preset date. Normally the year is broken into 52 weeks and week 1 is the one that contains the 1st of January. I'd ...
12 views

Emacs captain-mode auto-capitalization in comment

I installed captain-mode, and it worked as expected in org/text modes, but not so quite in programming modes' comment lines. The problem is it can auto-capitalize the first word from the second ...
4 views

Conditional CIDER breakpoint not working in recursive functions

I'm using CIDER for Clojure programming. I've been playing around with the CIDER debugger lately. I wanted to use the conditional breakpoint facility with some simple recursive function, such as ...
10 views

how to display target of an org-mode link in the echo area or as tooltip?

In org mode when I hover over a link, I get a tooltip that shows the target of the link. But I'd like to see the target when I just move point onto a link, either as a tooltip or in the echo area. For ...
19 views

How to count regexp in a string and use that number in replacement

In my LaTeX code I want to replace these strings: \left.\left.\left. \left.\left. \left. with: \left.\left.\left. \mycommand{3} \left.\left. \mycommand{2} \left. \mycommand{1} where the argument ...
17 views

Omit ~ before the \ref command (with RefTeX+AUCTeX)

The default behaviour of C-c ) is to insert \ref and prefix it with~. I don't need the tilde after \S (i.e. I need the output to look like \S\ref{label}, rather than \S~\ref{label}). Is there a short ...
9 views

roll back org-mode version

I have a scimax based configuration and my source block fontification is broken. I suspect it has to do with the release of Org-mode 9.3 which I am currently using. Scimax uses and automatically ...
8 views

emacs pinentry in minibuffer prompt blocks other frames?

I use Emacs in a terminal to read email using mu4e, mbsync. I have PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/machine imap.gmail.com login rudolf.sykora@gmail.com/ {...
18 views

Insert “indent” regardless of mode

When typing docstring in python-mode, I always have issue with indentation. If I am at this point (| is the cursor): def fn(): """ Args:|""" If I press Enter, the cursor will move right below ...
27 views

Can emacs show formatted backtraces?

When getting an Elisp error and trying to debug the problem, the backtrace buffer is quite hard to read with its long lines. Is there a way to get a pretty-printed backtrace buffer?
7 views

When moving to use-package, I'd to replace (require 'markdown-mode) (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) with (use-package markdown-mode :mode "\\.md\\'" :config ... ) ...
7 views

I am getting the following error while startup Failed to verify signature dash-2.12.0.tar.sig: No public key for 066DAFCB81E42C40 created at 2019-09-21T23:24:49+0530 using RSA Command output: gpg: ...
39 views

How to cycle among all live buffers?

Emacs 26.2 M-C-L is bound to switch-to-next-buffer. I have many files open but it's simply flopping between two. On my old XEmacs the same key cycled through all of them (and S-M-C-L did so ...
8 views

Flymake log questions

I have the following in my .emacs: (use-package flymake :init (remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake) (add-hook 'emacs-lisp-mode-hook #'flymake-mode) (add-hook '...
24 views

show white spaces only when region is selected

whitespace-mode will show the whitespace all the time in entire buffer, Is there the way to show whitespaces only when the region is selected. which is pretty cool to have, does there mode exist for ...
10 views

How to use ispell-word to correct a word immediately without prompting for multiple options?

Since the first option is the right one when fixing a common misspelling. Is there a way to make ispell-word correct the spelling of a word to the first suggestion instead of prompting from a list of ...
16 views

I have an org file that looks something like this: * Tasks ** TODO A test task * 2019 ** 2019-12 December *** 2019-12-10 Tuesday **** Day planning ***** Tasks for today [0/1] ****** TODO Another ...
23 views

Frame number in frame title - how?

I want to use two frames. One on virtual desktop #1 and the other one on #2. I (have to) work on Windows so I would like to see a frame number in the frame title, since Windows lacks a permanently ...
5 views

CentOS 7 emacs 24.3.1 gnome 3.28.3 frozen while loading file other than home directory

If I open file at home directory there will be a warning: (emacs:49027): GLib-WARNING **: 10:34:31.190: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was ...
21 views

Insert Org or Markdown code blocks with Babel in org-mode?

In org-mode, if I do something like this: #+begin_src org ## What does this PR do? - Updates the Dockerfile to make the dev service connect to a shared network at startup - Registers the ...
16 views

How to resolve TRAMP spamming empty messages

Connecting to a remote machine with tramp that may have VC (subversion) related files, I tend to see a large number of repeated messages in the *Messages* buffer. For example: Type "q" in help ...
22 views

Copy results of org-export directly to clipboard

I often find myself doing this: Selecting a region of text in an org file. Calling org-md-export-as-markdown. Selecting the converted text in the temporary buffer (can't just do mark-whole-buffer ...
18 views

Show a prompt dialog with a timeout

As expected, the following dialog box expires after five seconds under Linux: (progn (setq last-nonmenu-event nil) (y-or-n-p-with-timeout "Proceed? " 5 nil)) However, it lasts forever under ...
30 views

Display only not-DONE-yet items in agenda

I have several agenda commands set up, one of which gives me a block agenda, others give me specific searches. Since many of my TODOs are hanging around inside of projects, where I only archive the ...
12 views

viewing Parents only, no Children, in agenda

I would like to use agenda to generate a list of currently active projects. An active project (for me) is an entry tagged with wip and is not a TODO entry. I would like the list to have only the top-...
17 views

Enable org-agenda-clockreport-mode in TODO agenda view

Is there any way to enable clockreport-mode in a TODO-agenda view? I mainly use this view because I don't really set dates for my tasks so the agenda-view is not really helpful for me (I'm using ...
13 views

How to capture at an arbitrary date

If I do M-x org-capture, then delete the timestamp next to 'entered on', say 2019-12-09, then replace it with an abitrary one using C-c C !, say 2019-11-29, then C-c C-c to save, here's what happens: ...
16 views

Using auto-insert and yasnippet to insert variables into template

I've been reading this and this, trying to figure out how to have an org-mode in-buffer settings template such as this: # # -*- mode: org -*- # # -*- coding: utf-8 -*- #+TITLE: \$1 #+AUTHOR: (user-...
28 views

File tags prevent autocomplete of global tags

I amended .emacs as shown below. Then M-x load-file ~/.emacs. What I want to do in test.org is add MEntal tags to each of the two entries, for example Read and Reminder, respectively. Using the column ...
9 views

What are the key bindings relevant to week-genda view?

Reminder: one enters the week-agenda view by typing C-c a a. Only serendipitously did I find out that ! toggles "deadline inclusion". How would I find the description of similar key bindings from ...
14 views

emacs-jupyter debugging and realgud

emacs-jupyter supports pdb by displaying the pdb prompt in a minibuffer. I have a feeling that I should be able to connect to it with realgud:pdb, similarly to how I can realgud:track-mode-enable in ...
14 views

Unable to use yasnippet with Emacs on Mac or Windows

I've been trying to make yasnippet work with my Emacs on Mac OS 10.15 and Windows 10 but have failed till now. Along with a few other routes that I took, below is one of them: Install the package ...
24 views

Eshell - enable type text in any place

Emacs 26.1, Windows 10 (64 bit) M-x eshell Here result: But it's read only. But I need to type text in any place in any place in eshell. Also I want to move cursor in any place in eshell buffer. ...
23 views

How to supress transforming link names by org-export to html?

The HTML export of an org file transforms the links to "to equivalent HTML links in the output" How can I suppress this? I want to keep the same link names. Example: If we have this org file. ** ...
42 views

Evaluate algebraic formula in the buffer in place

Is there some package or builtin emacs feature which evaluates an algebraic formula in place? E.g. I type in the scratch buffer: (3 + 4) * 5 and when I invoke some command on this line then I ...
23 views

How to update lsp-java manually?

I'm trying to run a simple HelloWorld from Emacs using dap-mode commands dap-debug and dap-java-debug but prompted the error saying lsp-request: No delegateCommandHandler for vscode.java....
12 views

How to set font failover for Vietnamese characters

To display a text "tiếng Việt" (which means Vietnamese), I tried this: (set-fontset-font t '(#x1e00 . #x1eff) "Consolas") but it did not work. describe-char shows: "ế" ⇒ 1ebf "ệ" ⇒ 1ec7, so they ...
15 views

customize js2-mode switch indentation

This is pretty simple but it's thwarting me: this is how a switch statement indents in js2-mode switch(letterGrade){ case "A+": value = 100 ; break; case "A": value = 97 ; break; ...
79 views

How to detect the key binding for a function in elisp?

How would I go about getting the key binding for a function in elisp? I'd like to know which key is used to quit. e.g. keyboard-quit. I tried using the function used by help functionality but it's ...
42 views

Trouble while using string-match with rx expression

I'm trying to write a function that takes a string and returns non-nil if it's the word do not followed by the character :. Something like this: (string-match (rx "do[^:]") input) but I get the ...
10 views

Org Mode Clock-In Task Showing Void Function Definition

When trying to clock in a task in org mode I am getting this error: Troubleshooting so far: tried erasing .elc files from elpa org directory and re-loading. Tried updating org mode. Update failed (...
17 views

Modifying ruby-mode indentation

Currently, ruby-mode in Emacs 27 indents the following snippets like this: expect(foo).to match( bar ) expect(foo).to \ match(bar) Is there a way to ...
42 views

How to increse the number of undo steps stored by emacs?

Looking into undo, there are variables: undo-limit, undo-strong-limit, undo-outer-limit. While I can blindly set these to a big number and hope for the best.Whats a good rule of thumb for setting ...