# All Questions

16,876 questions
Filter by
Sorted by
Tagged with
70 views

### Do not open “GNU Emacs” buffer when launching Emacs [duplicate]

"GNU Emacs" buffer is opened automatically when launching Emacs(both terminal and GUI), and I have to kill that buffer everytime. It's boring. How to turn "GNU Emacs" buffer off autimatically when ...
26 views

I know we can use C-c C-x C-w to remove a single sub-tree and all its contents. Can there be a function to remove sub-trees with headings that fit a certain regular expression, just as the way flush-...
17 views

### Window configuration gives “Args out of range: 0”

I have the following forms in my ~/.gnus.el: (gnus-add-configuration '(summary (horizontal 1.0 (group 0.25) (summary 1.0 point)))) (gnus-add-configuration '...
31 views

### Merge two cells in an org table

I basically stumbled onto this older question how to merge cells in an org-table. This would be very useful to create a header, something like: |Merged header| |----+--------| | / | < | | 1 ...
17 views

### How to sort Helm command list alphabetically

When I hit M-x R I get the following list of commands: How can I sort this alphabetically, so that "R" is the first item on the list?
85 views

### Prevent org source block face from bleeding out in fold

The problem is that when there is one line in between folded headings with source blocks the text properties of the #end-src line bleeds out. You can see the lines bleeding on the right in the image. ...
27 views

### Prompt for command to reset variable to 1 or any other number

I have a command that semi-automates the insertion of numbered chapter headings in an org-mode file. (defun reset-counter () (interactive) (setq n 1)) (defun insert-numbered-chapter-headings () ...
20 views

### File link in Org mode to a file that has spaces in it’s file name on Mac

Yes, I know this question has been asked before and solved for Windows users but the solution does not work for me under MacOS 10.13.6 and Emacs 26.1 I have a file on my desktop named "Test with ...
13 views

### Prevent menu-bar from expanding too much

The way I have things configured, some Emacs modes end up adding a lot of entries to the menu-bar. As a result, the Emacs frame increases in width. This results in various annoyances. For now, I've ...
19 views

### Archive items marked as DONE with Logbook entries older than given date

I am using org-mode to manage my tasks and the logbook functionality to log my hours as I work on tasks. At the end of the month, I compile the time I spent using clocktables. When I deem a task as "...
57 views

### Sending `C-c C-c` to the process window without swithcing to it

In ESS mode, I sometimes send some code to the process buffer and want to cancel it using C-c C-c. Can I do this without actually switching to the process window from the script window?
26 views

### mu4e with two contexts: no matching messages found, wrong type argument

I'm trying to set up mu4e with mbsync and two gmail accounts. The structure of my Maildir is as follows: ~/.mail |--> school_address |--> INBOX |--> Sent |--> Drafts |--> ...
10 views

### Highlighting the currently active org-Babel block

I want to do something similar to hl-line-mode but not sure if it has been implemented already and how it can be implemented. The goal would be to set two color schemes for the #+begin and #+end ...
17 views

### Orgmode Export - Two Filenames

We can export a tree (C-c C-e) to a specific folder and with a specific filename by using the drawer option: :EXPORT_FILE_NAME: /path/to/folder/filename Question: Is it possible to export the file ...
11 views

### How can I make emacs respect “completion-ignored-extensions” when I hit TAB in the “Find File” buffer?

When I hit C-x C-f to open the "Find file" thing, I can hit TAB to open up a buffer called *Completions* that lists the possible filenames with the given prefix. Sometimes I have a bunch of backup ...
8 views

### ibuffer not displaying “*mu4e-main*” buffer

Upon opening mu4e, I expect the *mu4e-main* buffer to appear in the list generated by M-x ibuffer. However, even after typing / /, i.e., M-x ibuffer-filter-disable, the *mu4e-main* buffer is not in ...
10 views

### Emacs Is Auto-Escaping Periods From The Command Line

I'm attempting to run the profile-dotemacs.el script from the command line using Powershell on Windows. Here's what I'm trying to run emacs -Q -l C:\users\tom\Downloads\profile-dotemacs.el --eval "(...
9 views

### How do you fix a large list of unknown files in Ebrowse?

I'm trying to use the emacs Ebrowse tool. The issue I'm having is a great majority of the C++ files, from my BROWSE file, are showing up as (unknown) file type, resulting in me being unable to open ...
22 views

### Show @ symbol in different color in clojure mode

I want to show @ symbols (meaning dereference) in red in clojure-mode. How do I do that?
10 views

### How to set value vc-git-grep-template within function

I have a working sexp for configuration vc-git-grep: (setq vc-git-grep-template "git --no-pager grep -n -i -e <R> -- <F>") Then in dired-mode I evaluate M-x vc-git-grep and everething ...
17 views

### Symbol's function definition is void: rtags-enable-standard-keybinding [duplicate]

I have just started using emacs and I wanted to setup RTags. Looking at the Usage section int the github repo here, I added the following line to my config (rtags-enable-standard-keybindings c-mode-...
26 views

### setting left margin to particular buffer

I have buffer called *mydashboard* which is simply an org file. I want to set the left margin of this buffer to 20 chars. I am planning to use this as my dashboard where I can pin my links to other ...
39 views

### Is there a way to delete or clear a register?

For example, if I have too many registers and would like to get rid of some of them, is there a way to do that? I realize that quitting the emacs session will clear all registers, but is there a way ...
20 views

I've setup lsp-mode and clangd, and put the compile-commands.json in the projects root. I can tell compile-commands.json because my cflags are included in the Updating file output of *clangd::stderr* ...
41 views

### Octal character representation in keyboard macros

I generated a macro as a help for generating indices for words I have marked before. Now this macro looks as follows (fset 'index "\367\\index{\C-y") What does \367stand for and where can I look ...
5 views

### Implicitly excluding certain directories in mu4e queries

Is there an option to exclude certain directories from a mu4e search without stating this explicitly in the search string? For example, could I have date:today exclude /archive so long as the ...
17 views

### Handling mailto links with mu4e

How do I get mu4e to handle xdg-open mailto:foo@bar? I couldn't even find a function taking an address as an argument that will open a composition buffer.
20 views

### How to call ivy-occur programmatically?

I would like to programmatically call an ivy or counsel function and then immediately execute ivy-occur to get the ivy-occur buffer. Example: Instead of doing M-x counsel-describe-function and C-c C-...
64 views

### Overwrite global-set-key in major-mode

In my .emacs file I have bound the tab-key to a function called smart-tab. (global-set-key [(tab)] 'smart-tab) (defun smart-tab () "This smart tab is minibuffer compliant: it acts as usual in ...
15 views

### How to change the value of timeout for key sequences?

I have a key sequence for M-<SPC>: (global-set-key (kbd "M-<SPC> a") 'foobar) I would like to increase the timeout between keystrokes M and <SPC> for building M-<SPC>. How ...
68 views

### Missing tabs on Emacs

I have been using Emacs for one week, so all of it is really new for me. I saw that there are two types of commands in order to navigate in emacs : - Some "tabs" on the top - Commands like shortcuts ...
42 views

### org-mode search in headline gives a three dots line

certainly something I misunderstand, but I cannot find an answer. When I search in an org-mode file (with C-s) and find a result in a headline, if I press TAB to expand the headline where I found ...
74 views

### How to change line-number gutter width using display-line-numbers mode?

I am using (global-display-line-numbers-mode 1) in my init.el file and everything is working as expected. The only problem is that I find the gutter width to be too wide and would prefer it to match ...
19 views

### TeX-view replaces current buffer

I am encountering an issue since I switched to dev-branch: when I run the TeX-view command with only one active buffer (my .tex file), instead of opening a new side-window and displaying the PDF there,...
10 views

### shell code block in win10

I wish to run shell code in org sh code block as below: #+BEGIN_SRC sh :results output dir c:\ #+END_SRC #+RESULTS: : c:\>More? The output is not as expected! BTW, I have add below line in my ....
15 views

### How to display js2-mode warnings

I am running Emacs 26.1 on Ubuntu 16.4. I am writing Javascript using js2-mode. When the linter underlines a line of code, I want to know what error or warning it has detected. For example, in this ...
47 views

### How can I split LaTeX inline math from preceeding or following sticked words?

I have this LaTeX code: Lorem \$math\$ ipsum \$math\$dolor sit consecteruer adipscing elit, sed do eiusmod tempor incidunt ut labore et dolore magna aliqua. \$math\$Ut \$math\$ enim ad minim veniam\$math\$, ...
336 views

### How do I have tables side by side?

I'd like to have small tables being shown side by side instead of one under the other, when I export to PDF. Is there an easy way to do that ? Like a break between tables ?
17 views

### Iterate with both value and index

I want to iterate over a list with both the index and the value in the loop. Currently, the code looks like this: (let ((my-list '(a b c))) (cl-loop for index below (length my-list) for ...
20 views

### emacs c++ gud cannot skip non existing file, making it unusable

I have this file: #include <string> using namespace std; string remove(string s) { return s; } int main() { string s1 = "aaaa"; string s2 = remove(s1); return 0; } g++9 ...
21 views

### Org #+INCLUDE: turning what I want to be a 2nd level header into a 1st level header

Test case: a.org * This is a big section I have some content here ** And a second level section And more content here *** And a third level section And more content here b.org ** I ...
59 views

### How can I reliably create latex classes in org mode?

I'm trying to modify my .emacs to create my own classes, I tried this article and using org-latex rather than ox. I also tried this different approach. I tried enclosing the above classes with ...
58 views

### How can I tell when non-interactive bash process is done executing a command?

I'm trying to write a different shell command line interface where the input line stays at the top. Output of previous commands should stack below: > INPUT LINE LAST OUTPUT (of command 1) ...
23 views

### How do I get rtags to work in spacemacs?

On a recent pull of both rtags and spacemacs, but I can't seem to get rtags to work well. There is no keybindings for jumping/searching to/for symbols and the definitions either. I've seen a couple ...
29 views

### Improving org-block-begin-line, splitting in several faces

The face org-block-begin-line allows to customize the first line of the following block #+BEGIN_SRC lang :var arg1=1 arg2=2 ... #+END_SRC However, I would like to customize the faces within the line,...
36 views

### Disable tex-mode's auto tex-insert-quote functionaliy

So basically, for reasons unknown we don't use regular LaTeX style quotes at my company, instead just using regular double quotes. However, tex-mode in emacs automatically substitutes the " key for ``'...
21 views

### org-publish-project fails because of defective org-links - repair links automatically or ignore them?

I'm trying to "quickly" export my notes ans tasks from org-mode to a html-page with org-publish-projects. I had a working setup some years ago and I'm trying to reactivate it, but doing the export ...
79 views

### idiomatic way to lexically scope variables in a cl-loop body

Here is some asynchronous code in a cl-loop: ;;; foo.el --- -*- lexical-binding: t; -*- (let ((my-list '(a b c))) (cl-loop for index below (length my-list) ...