All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
6 views

In markdown-mode cursor goes to beginning of line when I type certain characters

In markdown-mode the cursor goes to the beginning of a line whenever I type any of (),[]{};, this happens in both GUI and command-line emacs, this only happens in markdown-mode. How do I stop this ...
0
votes
0answers
5 views

set package `the-icons-dired` to use consistent directory icon

I installed the-icons-dired package from melpa, however, it does not use consistent icons for directory. Some directories have their own special icon. Example, these are two directories: I noticed ...
8
votes
3answers
976 views

Writing portable Elisp

Ideally, I would like to be able to store the entire contents of my .emacs.d directory and have it "just work" on any Emacs I load it into, but still take advantage of any features of the specific ...
0
votes
0answers
26 views

How to use one keybinding to execute switch-to-buffer and minibuffer-complete at one time? [on hold]

Step 1: Press M-x Step 2: type switch-to-buffer , Press RET Step 3: Press TAB I need a keybinding to complete these three steps at once. Step 2 can be replaced with "type imenu , Press RET" , ...
0
votes
1answer
7 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.
3
votes
1answer
174 views

Why did the proced of Emacs not show the process on my win10 system?

My Emacs version is 26.1. The system is Microsoft Windows 10. When I run M-x proced, the buffer does not list the proced used on the current system. What is this situation?
6
votes
1answer
406 views

Line number (linum, nlinum) grow margin with increase in font size

When I turn on linum-mode or nlinum-modeand increase the font size via C-x C-+ it does not increase the size of the "margin" where the line number is displayed, so only part of the line number is ...
9
votes
4answers
4k views

Run emacs GUI from emacsclient

I am running emacs 25.1. I have emacs server starting as a daemon on startup and I can open an emacs terminal session with the following alias: alias em="emacsclient -t" How can I start the emacs ...
8
votes
2answers
2k views

org-mode table exports centered - change to left?

I'm exporting a simple org-table through LaTeX to PDF: | a | b | c | | 1 | 2 | 3 | After export with C-c C-e l o the PDF contains a centered table, and I'd rather have it on the left (to be clear, I'...
0
votes
0answers
8 views

company-mode doesn't work on latex environment

I've installed the company package in order to get an auto-completion functionality. It works well in my ESS environment, but no in latex. In fact, no completions are showed in latex buffers when I ...
0
votes
1answer
22 views

How can I make emacsclient use an existing window in the current frame?

I'm on MS Windows, if that makes a difference. My desired behavior: There is only one frame visible at any time. Visiting a file should use an existing window in that frame. (This is the default ...
0
votes
2answers
40 views

How to detect the number of lines scrolled from scroll up/down?

When running scroll-up or scroll-down, it's possible emacs isn't scrolling the number of lines requested (if you hit the start/end of the buffer for eg). Is there a convenient way to know how many ...
1
vote
2answers
140 views

Shell mode: moving through the command history

In a shell in a terminal (Gnome Terminal + bash), the up and down keys allow me to browse through my command history. In shell-mode inside emacs, the up and down keys move around the buffer, which is ...
0
votes
1answer
25 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?
0
votes
1answer
40 views

How can I skip 'Scan-error: “Unbalanced parentheses”…'?

I want to write a script in order to correct spaces inside section command in a LaTeX code, that's to say \section{Lorem ipsum dolor sit amet consectetuer adipiscing elit} should be \section{...
0
votes
0answers
3 views

Attaching files in mu4e from the clipboard

I use mu4e for email. I can attach a file to a new message with drag-and-drop or with dired (as in these directions from the manual). I would like to code the same behavior as Mail: in the Finder, I ...
2
votes
2answers
459 views

Sending email fails with `Process smtpmail not running`

I followed this guide to set up IMAP email with Emacs, mu, and mu4e. I can pull email and view it in mu4e alright, but I can't seem to send email. I press C for Compose, edit the email, then C-c C-c ...
0
votes
0answers
13 views

Config is broken when I use load-user-file

This is my config for org-babel: (use-package org :mode (("\\.org$" . org-mode)) :ensure org-plus-contrib :config (org-babel-do-load-languages 'org-babel-load-languages ...
0
votes
1answer
37 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 ...
0
votes
0answers
12 views

Elpy doesn't recognize I have virtualenv installed

I am trying to get started with elpy but any python file I open elpy will complain and say eldoc error: (error Elpy necessitates the ’virtualenv’ python package, please install it with ‘pip ...
0
votes
0answers
12 views

Filter Tasks with Certain Tags in Day Agenda View

Objective: In daily agenda, when at office, do not show tasks that can only do at home. That is filter tasks with "@office" tag in daily agenda. Solution 1: Automatically removing context based tasks ...
4
votes
2answers
896 views

Company mode popup closes after C-n

Company-mode gives me a popup with options, but once I press C-n to navigate through the options, the popup disappears (I can still cycle through the options , but they are shown inline). I want the ...
1
vote
0answers
21 views

How to open two files in two frames on startup?

Here's what I'm trying to make happen: on startup, I want emacs to split vertically into two windows displaying two different files, with my to-do list on the left side of the screen and my notes on ...
0
votes
0answers
24 views

Set font family for comments

In coq mode I have ligatures being used: instead of "fun", it shows λ in the programming code. But in the comments lambda transformed into a character I can't even copy, so I'll attach a screenshot: ...
0
votes
0answers
21 views

Performance issues using go-eldoc

The Problem Performance issues when point is inside/on a symbol go-eldoc/gocode has info for. Based on my interaction with emacs I would guess that the problem has something to do with gocode being ...
2
votes
1answer
59 views

Adding custom word list to company

Is it possible to add my personal custom list of words to the company database. Kindly guide me in a simple way. I am not a programmer.
5
votes
1answer
118 views

Track arbitrary progress in Org-mode

If I'm reading a book, that has 500 pages, and I'm in the page 253. I want to track that progress in Org-mode as %, is there a way to do it that is already built in (or, if is not the case, is there a ...
0
votes
0answers
9 views

How to show waka mode time in emacs mode line?

I setup the waka time to monitor my usage successfully. However, the mode line only shows "waka" and nothing on the amount of time I spent using Emacs. To get the statistics, I have to login to Waka ...
10
votes
1answer
270 views

Highlighting upcoming dates in org mode agenda

I have entries in my org file similar to: * Birthdays :PROPERTIES: :CATEGORY: birthday :END: %%(org-anniversary 1981 1 2) Harry (%d) What I would like is for these to appear in the agenda (say) 2 ...
7
votes
2answers
152 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, ...
4
votes
2answers
370 views

How can I make occur's regexp matching case-sensitive?

By default, occur uses the passed regexp to match lines in a case-insensitive way. Is there a way to make this matching case-sensitive? For example, if I run M-x occur ^function RET, occur will match ...
4
votes
2answers
223 views

How to implement remove-key to completely undo the effect of define-key

A long time ago I implemented remove-key to completely undo the effect of define-key, but when I just tried that implementation, it did not work reliably. How would you implement remove-key so that ...
2
votes
1answer
450 views

browse-url-browser-function for Firefox Quantum

browse-url-firefox does not work with Firefox Quantum. If Firefox Quantum is already running, then I am told: Firefox is already running, but is not responding. To open a new window, you must ...
0
votes
1answer
53 views

Use magit to find out who wrote the line at point and when

Someone showed me how to do this with "ruby mine" but I don't use ruby mine so hoping emacs / magit can do this. A file in a git repository is opened up in emacs. Point is at line 23, and you want to ...
0
votes
1answer
66 views

Hiding items in org-agenda view and calendar

When I still used Emacs Diary as my default organizer I valued its ability to mark items on the calendar. One could also make an entry that was NOT so marked by placing an ampersand before the entry. ...
2
votes
1answer
916 views

Can't get gnus to work with Gmail and GPG

I was once able to read and write my Gmail email in Gnus, but now I am unable to and can't figure out the problem. There seem to be several problems -- (a) with my gpg2 setup; (b) with my gnus nnimap ...
0
votes
1answer
54 views

How to escape a character within a heading in org-mode?

Documenting this because I could not find an answer in stack exchange. A heading such as this breaks during LaTeX export: * MITRE ATT&CK Rather than switching to a code-block, and loosing the ...
3
votes
1answer
140 views

How to Export All Daily Task State Changes to File?

I am trying to generate nice end-of-day reports in the file diary.org for logging and archiving purposes. I would like to generate a simple list of all TODO task state changes for the current day to ...
0
votes
1answer
62 views

Make highlight-changes-mode untrack specific changes

I recently discovered highlight-changes-mode and I added it to my proofs-typesetting setup (LaTeX). I usually make some temporary changes to my buffer that I like not to be tracked (highlighted) when ...
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
1answer
49 views

How to perform query-replace inside mathematical expressions in latex

Inspired by this answer, I have written the following function to perform a query-replace inside a math environment, but it does not work. Edit. If you execute the function, the query-search tries to ...
0
votes
1answer
53 views

How to use Ansible layer in Spacemacs?

How to use Ansible layer in Spacemacs? I am trying to understand how to write Ansible roles and test them using this layer. I added ansible to dotspacemacs-configuration-layers, restarted Spacemacs ...
27
votes
4answers
10k views

What is the easiest way to search all useful files inside a single project?

What is the easiest way to search for a regexp throughout the contents all files in the current project, skipping files that are not useful? Useless files are things like compiled files, imported ...
1
vote
0answers
28 views

Disable ispell when using Tramp

In my Spacemacs, I enabled the spell-checking layer which enables ispell. I noticed that my Tramp connection is very slow, and after debugging, I found that one of the causes is ispell: 02:07:20....
0
votes
1answer
48 views

How to change cursor on defocus? [on hold]

I am running emacs on a Linux machine to my Windows 10 desktop server (running VcXsrv 1.20.1.4). I'd like to get a hollow-square cursor when the emacs window doesn't have keyboard focus, and a filled-...
0
votes
1answer
76 views

Evaluating the Chez Scheme code with C-x C-e

I've just installed Chez Scheme and combined it with the Geiser package using this tutorial M-x run-chez runs quite fine but C-x C-e causes the Emacs Lisp rather than Chez Scheme evaluate the code. I'...
0
votes
0answers
29 views

Trouble binding C-return: C- must prefix a single character

This is what I have: (add-hook 'magit-status-mode-hook (lambda () (local-set-key (kbd "<C-return>") 'magit-diff-visit-file-other-window))) Opening a magit-status buffer fails with "C- ...
0
votes
1answer
24 views

How to get all full path list by a folder name?

I want to get all the full path by a folder name called autoload, in my config i had split it like this file structure. ├── init.el ├── packs │ ├── +completion │ │ ├── ivy │ │ │ ├── ...
0
votes
0answers
24 views

List commands / keywords in a directory sorted by frequency of use

I want to do some refactoring. For that purpose I want to list all keywords grouped and sorted by their frequency of appearance. That could help me get ideas, which repetitive code I could start ...
0
votes
2answers
58 views

Problem with org-insert-link and yas-expand

I have a problem when I want to yas-expand a link in Org-mode and it has a dash (-) in the text (url and description). Then the snippet break and exits. If I do the same in fundamental-mode it works. ...

15 30 50 per page