# All Questions

16,867 questions
Filter by
Sorted by
Tagged with
3 views

### completion-kill-region breaks rectangle-mark-mode

When using dynamic completion, rectangle-mark-mode is broken insofar, as C-w no longer respects to only kill the rectangle but kills the usual full (non-rectangular) region. M-w on the other hand ...
191 views

### How can I change external program to open org URLs for one org file only

In my Emacs config, I have set Firefox to be the browser to open URLs with, (setq browse-url-browser-function 'browse-url-firefox) Now, I have one org-mode file, in which I would like to open URLs ...
21 views

### dired-do-copy in tramp does not go to local when \ C-j is pressed. File path stays in the same directory

I am using dired-do-copy to copy a file from remote using tramp to local. When Copy file to path is promted. I used / C-j to go to local path but the path stays in the same directory , does not go to ...
2 views

### mu4e or mu cannot find a search term with a period

I use mu4e and sometimes I cannot find a message with a search term including a period. For example, if I search for Google.org, I see: No matching messages found but if I search for "impact ...
311 views

### how to have EMACS use the right alt key the same as the left alt key

I regularly use the backspace key to delete whole words at a time to the left of the cursor, but this would be a MUCH easier keystroke if it could be done one-handed. For that to happen - I would ...
10 views

### Yasnippets: How to add if statements that check for regex?

I would like to replicate some of the snippets shown in this blog post Some of the snippets shown in that post involved if statements that check for regexp in snippet fields as well as checking for ...
170 views

### Edit commit messages in markdown mode

I configured git so that it uses emacsclient when editing commit messages. The only problem is that these messages are edited in fundamental-mode. Which hook should I use to have these commit messages ...
19 views

### How to automatically press the Tab key to execute minibuffer-complete after executing imenu?

I first set up this key binding : (global-set-key (kbd "<f4>") (lambda () (interactive) (other-window -1))) When I use imenu I always have to perform the following steps: Step 1: Press M-x ...
44 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 ...
64 views

### Issue archiving when maintaining org-mode subtree structure

I'm trying to archive DONE org-mode tasks while maintaining the subtree structure. There's a partial solution for what I'm trying to attempt at https://gist.github.com/edgimar/...
17 views

### Is there is an existing parser for .gitignore files?

Is there is an existing parser for .gitignore files? Maybe there is some Elisp package that includes something like this? Ideally, I would like to be able to read a .gitignore file in a given ...
46 views

### How can I represent a 4 spaces tab width as 2 spaces?

I'm working with a friend on a javascript project, and while I'm an 80col zealot, he wants to have 4 space tabs. It's not the end of the world, but it bothers the heck out of my eyes. I know about ...
7 views

### Terminal output behaving oddly with zsh

When using zsh within multi-term, the output becomes garbled on my machine with an ls command printing like so Does anyone know what could be causing this?
11 views

### How can I prevent org-mode reading agenda files when started?

My org-mode agenda files are on a remote machine, accessed via ssh using tramp. When org-mode starts it always reads this file, which is inconvenient as it makes opening any org file very slow. I ...
14 views

### gnus viewer for attachments

I recently started using gnus to view my emails. Opening attachments is still the most annoying part for me and I am trying to address that. The behaviour I would like is: If the attachment is text-...
32 views

### Automatically toggle external display profile

Apologies I know this will seem pedestrian -- please forgive me, I'm a newbie. I have low vision, so I'd like to automatically toggle different "display profiles" based on whether there is an external ...
174 views

### How do I attach a custom function to process org-mode babel shell output?

I have a a function (defun display-ansi-colors () (interactive) (let ((inhibit-read-only t)) (ansi-color-apply-on-region (point-min) (point-max)))) that I got from here: http://stackoverflow....
19 views

### Spacemacs/LaTeX : How to scroll at the same time and pace a tex file and its pdf preview?

Config : Spacemacs 0.300.0@27.0.5 with latex layer I am using two windows in one frame with a tex file and its preview: |---------------------------------------------------------| | \section{...
28 views

### how to prevent debugger from taking focus when you evalute lisp expresison with errors

How to reproduce: write some faulty elisp code press C-x C-e for eval-last-sexp the debugger will appear (*backtrace* window) and take the focus of the cursor. I'd like the focus to remain with ...
542 views

### Change local holiday calendar

Org-mode's agenda view can display local holidays after enabling it in org-agenda-include-diary. This however displays US holidays (such as President's Day). What is the simplest way to configure it ...
42 views

### how to enable pager like behavior in a shell buffer?

I can't believe I'm saying this, but one thing that is "nice" about windows cmd is the pager. When I do man grep in a bash shell inside emacs buffer it spits out the entire content at once. Is there a ...
21 views

### Helm for anything

I use Helm for switching between buffers, opening files, m-x'ing, etc. Is there a way to make helm search in all these things at the same time? I'd like a super-helm to provide all the results I'd ...
72 views

### phpunit in org-mode src block

I'm using phpunit package https://github.com/nlamirault/phpunit.el and it works great with php files. But I have a simple php blog about refactoring ex: http://phprefactor.com/refactorings/decompose-...
20 views

### When I go into the terminal the C-c / C-j and C-c / C-k keybindings are no longer working [on hold]

When in term mode the C-c C-j C-c C-k key bindings are designated as activating line and char mode respectively [1] However if I activate the following global-set-key as defined in my init file, the ...
31 views

### How to set key binding for read-only-mode? in order to simplify cursor movement

moving point command: next-line, previous-line, forward-char, backward-char, etc. How to omit Ctrl key in read-only-mode? How can I combine with read-only-mode-hook to automatically enable keybind ...
6 views

I want to add a display-line-number-mode advice to evil-ex. This should turn on line-numbers when I toggle evil-ex in a non line-numbered buffer. (defvar line-number-changed-call nil) (defun ...
61 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 ...
15 views

### Melpa packages are not indexed before manually listing packages

I recently switched from sublime text 3 to emacs so I still don't quite understand everything. When I launch emacs and run package-install, I can not look up packages from Melpa to install, e.g., ...
77 views

### Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
219 views

### How to force 'Ctrl-X, Ctrl-B' to always split vertically?

Once upon a time, Choose Window (invoked by C-x C-b) used to always split the window vertically. Starting from a certain Emacs version (I can't recall which one), that split is now either vertical or ...
5k views

### How convert txt file to UTF-8 from Windows-1251?

Windows 10, Emacs 25. When I want to convert file from Windows-1251 to UTF-8 I use Notepad++. Before convert: convert: after convert: My question is: Is it possible this convert in Emacs?
6 views

### ein login error due to curl version not support compressed

I am using win10, emacs version is GNU Emacs 26.3. python version is Python3.6.8. After install EIN (EIN version is 20190813.2156) package and try to run M-x ein:login, I got below error message: ein:...
8 views

### Debugger breaks with Args out of range: “”, 0

When forge is installed on a system with no compiler, I sometimes get this error which breaks magit. I'd like to figure out the traceback for this error so I can add some proper error handling, ...
22 views

### Translating C-M-S-s to H

I followed a Linux tutorial that turns the Caps Lock key into the hyper modifier, so I defined some keys such as H-b. I'm using the same Emacs configuration on macOS, so I tried to map caps lock to ...
7 views

### magit commit does not permit adding a gpg signature

I am failing to run gpg to sign commits, after doing so successfully before an upgrade to Mojave and an upgrade to Emacs. (I am not sure when I lost the ability to sign files in the past year.) When ...
26 views

### Simple regexp inside emacs keyboard macro

Newbie question: I'm trying to record a keyboard macro with a simple regexp inside (search-backward-regexp ^[0-9]). This works well when recording the macro, but as soon as I try to execute it, the ...
38 views

### Why does a let-bound huge list survive garbage collection after the let form?

Note that the following original test is errorneous and has been superseded by the EDITED version below. (progn (message "Before: %S" (memory-use-counts)) (let ((x (make-list 100000000 0))) (...
10k views

### Edit file with super-user rights

When you have to edit system files, it's an usual situation that you launched Emacs with a normal user before, so the file will be write-protected. What can I do to gain root privileges? I mean ...
10 views

### Choose to use a function between emacs packages or libs

Suposse that I want to use the function dolist from package cl (I know that is obsolete and als have cl-lib package). but when I'm looking for documentation (C-h f dolist) I get the following: ...
32 views

### Display one character in an alternative font family

I want to change the appearance of my lozenge character. I have tried running the following: (set-fontset-font "fontset-default" ?◊ (font-spec :family "PragmataPro")) However, if I type ◊ and ask ...
16 views

### How to unpack a tuple from org-sbe evaluating a python code block into multiple columns of a org-table?

I often encounter situations where I can easily think of python code that, given some input values, computes multiple output values at once. As an example, consider the following simple code-block ...
34 views

### Can't view anything in org-agenda: Wrong number of arguments: (0 . 0), 2

Whenever I try to view my org-agenda, I get a blank buffer with "Wrong number of arguments: (0 . 0), 2" in the minibuffer. I've followed dozens of tutorials and bug reports and nothing applies. Can ...
2k views

### Installing Emacs from source: 'make' fatal error: 'libxml/tree.h' file not found

I wish to run Emacs from the latest development version. I've downloaded the latest Emacs development version from https://savannah.gnu.org/projects/emacs (with git clone -b master git://git.sv.gnu....
23 views

### Can magit pull hunks from another commit into my branch?

I have a big commit on another git branch. I'd like to "cherry-pick" some hunks from that commit into my current branch. I bet magit can do that, but I'm not sure how. Anyone? (I've seen ways to ...
12 views

### How to allow multi language output with org mode and Latex?

I'm using the most recent version of emacs on Windows10. I have an issue where when I want to convert an org file to Pdf through Latex but I'm having languages issues. If I use English I have to ...
14 views

### How to change what modeline displays, based on major mode?

i know i can change what info to display in modeline in mode-line-format variable. But how to display mode-line-position for one mode, but not display it for another?
4k views

### How to get element number in a list?

Q: how do I get the element number in a list? nth gets element number n from a list: (nth 2 '(a b c d)) ; => c I'd like to do the reverse: get the element number given the ...
125 views

### How to link to a LaTeX label within align* environment in Orgmode?

I am using org mode to write documents with math, and then exporting to latex. Consider an unnumbered align environment with two equations: \begin{align*} x = 1\\ y = 2 \end{align*} Now, number the ...