All Questions

Filter by
Sorted by
Tagged with
1
vote
1answer
69 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 ...
0
votes
0answers
26 views

Flush headlines in Org

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-...
0
votes
0answers
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 '...
0
votes
0answers
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 ...
0
votes
0answers
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?
1
vote
1answer
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. ...
0
votes
1answer
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 () ...
0
votes
0answers
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 ...
1
vote
0answers
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 ...
0
votes
0answers
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 "...
5
votes
3answers
53 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?
0
votes
0answers
25 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 |--> ...
1
vote
0answers
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 ...
0
votes
0answers
16 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 ...
1
vote
1answer
10 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 ...
0
votes
1answer
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 ...
0
votes
0answers
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 "(...
1
vote
0answers
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 ...
2
votes
1answer
21 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?
0
votes
1answer
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 ...
0
votes
2answers
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-...
0
votes
0answers
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 ...
1
vote
1answer
33 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 ...
0
votes
1answer
19 views

How to debug lsp-mode “lsp-request: method not found”?

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* ...
3
votes
1answer
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 ...
1
vote
0answers
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 ...
1
vote
0answers
16 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.
0
votes
1answer
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-...
1
vote
2answers
63 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 ...
0
votes
0answers
13 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 ...
0
votes
1answer
67 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 ...
0
votes
1answer
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 ...
2
votes
1answer
71 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 ...
0
votes
0answers
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,...
0
votes
0answers
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 ....
0
votes
1answer
14 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 ...
1
vote
0answers
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$, ...
2
votes
1answer
332 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 ?
1
vote
1answer
16 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 ...
0
votes
0answers
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 ...
0
votes
1answer
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 ...
2
votes
1answer
57 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 ...
1
vote
1answer
57 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) ...
0
votes
0answers
21 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 ...
1
vote
1answer
26 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,...
2
votes
3answers
34 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 ``'...
0
votes
1answer
19 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 ...
4
votes
3answers
78 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) ...
0
votes
0answers
28 views

Emacs shell slow compile

So I've been searching around for this particular problem and apparently I found no solutions. There are posts on reddit about this: https://www.reddit.com/r/emacs/comments/3scsak/...
1
vote
0answers
51 views

Emacs not responding to keyboard input

Sometimes Emacs stops responding to keyboard input. It responds to mouse input though. If I do killall -s SIGUSR2 emacs, the debugger shows this (but remains unresponsive to keyboard): Debugger ...

15 30 50 per page