All Questions

17,046 questions
Filter by
Sorted by
Tagged with
8 views

Can which-key help with extended keyboard shortcuts?

I have two shortcuts defined like this ;; eval in shell (global-set-key (kbd "C-c x s") 'eir-eval-in-shell) ;; eval in ruby (global-set-key (kbd "C-c x r") 'eir-eval-in-ruby) which-key helps me ...
6 views

How to make pulse-momentary-highlight-region stop highlighting after 1 second?

When I do pulse-momentary-highlight-region, the highlight stays till I press any key. (I'm on macOS emacs -nw.) How can I make the pulse to go away after a short while?
247 views
+50

Inferior Python shows not output, or input

I have the symptoms described here Input and Output does not show up in python mode, except this happens with python3 as interpreter as well as ipython, and I've tried the suggestions there for fixing ...
60 views

How do you automatically enable writeoom-mode when org-mode starts?

I want to enable writeroom-mode whenever I startup org-mode because I don't really ever want writeroom-mode to be disabled if I'm using org-mode.
16 views

Check whether buffer is in org-mode

I want to programmatically check whether the current buffer is in org mode. I know that major modes should usually define the variable <modename>-mode, i.e., org-mode should be a defined ...
251 views

Autocomplete after dot in python

I haven't used emacs before, but would like to learn how to use it properly for Python development. From the past IDEs I have used I enjoyed the feature to obtain information on possible objects ...
22 views

23 views

Why does emacs add a tab to the current line when I use “expand abbreviation” feature?

Apologies if my question is silly, it's my first day using abbrev expand. I have an abbrev set up like this "bm" 3 "bookmarks-acd1fe" When I press bm tab, I end up with bookmarks-...
10 views

Render bmp images in org mode

I want to quickly embed images in an org document and am trying to use org-download to help me. However, due to a silly bug in Firefox, images are saved as .bmp files. The result is that org-...
14 views

Aquamacs for macOS Mojave and Catalina - error in process filter: ‘recenter’ing a window that does not display current-buffer. How can I fix this bug?

I'm a very new Mac user and not really an Emacs user. I just use emacs to run PVS Specification and Verification System, by typing the pvs command in the terminal to start the software. Aquamacs was ...
23 views

Broken Python and can't find System back-up. Can I save without re-install? Why? and/or Why not? ~ Samuel [on hold]

I'm not sure, I think I recall prepping python wit some feature and trying to remove it then trying to remove Python itself somehow using the emacs editor? Oh heck, not long ago I never heard of an (...
20 views

Org Capture - prepend after org header/config block?

One of my org capture templates (in my init.el) looks like the following: ("n" "Note" plain (file "/path/to/file.org") "* %^{Title} %U \n%? \n" :prepend t) I'd like ...
1k views

How to assign TAB to indentation and to yasnippet expand key

i'm trying to have the key TAB to: Indent my code (like in any other text editor) Trigger Yasnippet I have theses lines in my config: (global-set-key (kbd "TAB") 'yas-expand) (global-set-key (kbd "...
23 views

Copy to PRIMARY selection in command

I'm a novice in Lisp, so I feel like I'm missing something very basic here. My intention was to create a function/shortcut to remove all whitespace and newline chars from the selected text and copy ...
11 views

Python and electric-indent: newline autoindent disregards previous blank line

This is (yet) another question related to electric-indent-mode and Python, but since I couldn't find what I address here in the other ones, here we go. I find the behavior of electric-indent-mode ...
7k views

How to proceed on package.el signature check failure

I just tried to install ascii-art-to-unicode from the gnu repository (http://elpa.gnu.org/) via list-packages. I get the following error: package--check-signature: Failed to verify signature ...
41 views

What exactly is the difference between font-family and font-foundry?

What is the historical context of these two terms? Why are they distinct? And why are they needed? What pragmatic utility is there in knowing how these two terms differ? In terms of Emacs/Emacs Lisp, ...
9 views

Can “kaz-yos/eval-in-repl” use the prexisting “inf-ruby” console started by robe mode

I've been using org babel to execute ruby code, works well but wrapping blocks with begin_src/end_src is cumbersome no live output - i have to wait till the whole process finishes to see output ...
35 views

I got a problem for an advice-add inside Dired's copy function (dired-do-copy). My object is it to filter all marked files/directories in Dired, which should be copied to an other location within ...
10 views

Avoid Adding Backslash to Curly Brackets when Exporting Latex

I want to export an org tree to latex, but whenever I have a command that nests curly brackets, org export will automatically prepend all brackets with a backslash. For example, the tree: Exports to ...
13 views

Syntax/indentation problems with Vue mode in Emacs 27 nightly

I'm using vue-mode, based on mmm-mode with Emacs 27 nightly from 10/10/2019. Since that Emacs update, I don't get any indentation support in the script section of a Vue file. Try this file with emacs -...
35 views

How do you change the paper size on pdf export in emacs?

Every time I export using the dispatcher, the pdf that is produced is letter size. My system and printer are A4. How do I change the paper size for pdf (and text) exports in emacs?
83 views

How to denote an aside in org?

I am trying to go deeper with org mode to the literate coding stuff itself rather than merely for markup. I am writing a document where I'm solving some coding challenge, and part way through ...
2k views

org-mode ignore heading when exporting to latex

I have a problem where I want to structure my document visually with a heading but do not want it to actually execute a \section{Fake Heading} for the latex export. I imagine this would be ...
28 views

I'm currently using Ubuntu 18.04, and trying out Emacs for the first time. However, whenever I run the command package-refresh-contents, I get the the follow error: Failed to download 'gnu' archive ...
17 views

Why does this org session src block not give me the right results?

I am trying to up my literate coding chops and solving some programming challenges with it. Here is the full writeup of the exercise I'm playing with Mostly everything works and I understand ...
139 views

'No such file or directory' when I install 'org-bullets'

I'm trying to install the org-bullets mode and after pasting the install code given in the GitHub's site in .emacs, and paste the .el file into the home directory, I get this result.: Warning (...
34 views

eval in rx-to-string works in *scratch* but not in code

I am trying to code an rx-to-string form that contains an intermediate regexp. This code works in Lisp Interaction Mode: (let* ((a-plus '(one-or-more "a"))) (rx-to-string '(sequence (eval a-plus)))...
41 views

How to delete numerals of a certain size from text

I'm pretty new to emacs, so I'm still learning all the functions. I'm trying to remove certain metadata from each line of several large .txt files (Bible translations) and was wondering if if there ...
197 views

Setting C-p as helm-projectile-find-file

I put this at the very end of my config file: (global-set-key (kbd "C-p") 'helm-projectile-find-file) On Emacs start I can see that it is getting assigned using C-h k C-p. Then when I actually load ...
53 views

In gui, font looks thicker than usual

I started using Emacs a few days ago and facing the problem. I use "M+ 1mn" for programming so I set this for Emacs. But It looks thicker than usual.(in Geany, VSCode, Xfce Terminal ...) How do I fix ...
9 views

why does flap prompt me instead of taking me straight to the file?

Why does ffap prompt me instead of taking me straight to the file? there's no ambiguity, the file simply exists. for example ~/work/notes.txt looks like I'm not the only one with the issue
25 views

What are all of these predefined items when I do M-x edit-abbrevs

When I do M-x edit-abbrevs I see a long list of items, along with my item. I added only one abbrev. I hate surprises, so I want abbrev to expand only my things. So should I comment out stuff like ...
134 views

Clone a buffer to see the same contents in an other mode

Suppose I'm working on a file in org-mode or enriched-mode or html-mode ..., and I wanted to see the same contents in an other window with an other mode, say text-mode, how to do that? I tried to ...
122 views

I use mu4e. When I reply-all to an email, my own email appears in CC. I have these lines in my configuration: (setq mu4e-compose-dont-reply-to-self t) (setq message-send-mail-function 'smtpmail-...
52 views

How show multicursor only from cursor position?

emacs 26 in my scratch buffer I select dash Now I want to show multicursors only from cursor position (line 5). M-x mc/mark-all-like-this But it show multicursors in whole buffer I also try M-x ...
24 views

how to use link path to set the background face?

I would like to use a custom link, i.e. [[h:blue][blue highlighted text]], to create highlighted text. The background color of the highlighted text is specified by the path. I have (org-link-set-...
1k views

How do I set up font fallback in a robust way?

TL;DR: What's a simple way to reliably say: use Consolas as the default font, FreeMono for the characters unsupported by Consolas, and Symbola for characters unsupported by both? Since my main ...
2k views

elpy [No match] when installing package

I'm trying to follow the instructions in the README of this repo: https://github.com/jorgenschaefer/elpy . Everything goes smoothly until I get to the point where I am to install the package. After ...
118 views

GNUS doesn't show all Mails

I am using gnus for reading my gmails. But almost always by checking the INBOX of my gnus and comparing to my actual gmail account, i have new (or old) mails which are not shown in gnus. Does anyone ...
26 views

Getting operation not permitted when trying to open projects or use integrated terminal in emacs-doom

While using MacOS Catalina (which is suspect is the problem) I recently decided to try emacs, as a recommendation from a friend. I finally get it working and generally figure it out and now when ...
8 views

How to force left flush before next main header in org-mode

I am trying to add two more empty lines before the next main header and a solid line like so: ----- * Header 1 ** Header 1.2 \\ \\ ------ * Header 2 How can I align \\ and ----- to left ...
20 views

Troubleshooting a hanging list-processes

Normally I'd use M-x list-processes to see what Emacs is running in the background. But in this case list-processes itself hangs. What is the right thing to do in this situation?
2k views

How can I get a sensible split-window policy?

Emacs is constantly making new windows and it's been ruining my day lately. How can I tell emacs to use the following policy when creating windows? Prefer vertical splits Stop doing vertical splits ...
155 views

Syntax highlighting fails on clone-indirect-buffer-other-window

I normally use indirect buffers while I edit python code in python-mode, I create them by running clone-indirect-buffer-other-window. While the syntax highlighting of the main buffer looks just fine, ...
49 views

Remove text from toolbar

my toolbar is filled with many buttons, and I'd like to know if it is possible to remove the text so it only shows the icon (and if it is possible, how to do it). I currently have this : But as you ...
34 views

Constructing a nested tree from an org heading hierarchy

I have a custom tangling function traverses an org file. It matches the nearest heading or block. If it matches a heading it collects a list that looks like (level header tags). If it matches a ...
16k views

How to set up elpy to use python3?

When setting up my emacs for a new work environment, I am unable to get the elpy configuration to correctly use python 3. I have installed all of the required packages in /usr/local/bin and have ...