# All Questions

15,671 questions
40 views

34 views

### end of file during parsing during org-mode export to latex

I have a weird thing going on with emacs on Fedora 29. Once in a blue moon, my Emacs will go HA! you cannot export to LaTeX with the "error": end of file during parsing during. However, if I move ...
33 views

### How to create a short name for tramp multihop path?

I connect to various locations, for example: /ssh:hostname|sudo:hostname:/ /ssh:hostname|sudo:hostname|docker:container:/ and want to have some kind of short aliases for these long paths. Something ...
24 views

### How to “manipulate” using R in Emacs

In Rstudio one can use library manipulate to interactively change the plot over some parameters(mu). When you use this in emacs ESS it gives error: function(mu){ plot(mu) } manipulate(myfunc(mu),mu = ...
29 views

### How to automatically enable a mode for only one specfic type of buffer?

I user dired to browse file, and I would like to use hl-line-mode which highlights the currents line, but I only want it to be enabled automatically when using dired
18 views

### What's the org-mode syntax that tells LaTeX to place a float /here/

My images are floating much more than I'd like. I'd like to force them to be where I tell them to be more like \begin{figure}[!htb] \centering \includegraphics[width=0.75\textwidth, ...
26 views

### How to define a function that calls two commands where the first one requires an arguments

I use emms to play music in emacs and I have this function to add a music directory and shuffle it. (defun my-emms-command() "Run emms-add-directory' and emms-...
37 views

### How do I remove :width and :height from an image created with create-image?

I am trying to make jabber.el support images sent from e.g. Conversations. I download the image using url-retrieve-synchonously and call create-image to get an image which I can then use with insert-...
22 views

### Spacemacs: Error Wrong type argument: commandp, org-set-tags when setting tag

I was not sure if this is a Spacemacs issue or a local configuration issue, hence I figured I would post to Emacs Stackexchange. When I use the Spacemacs key SPC-m : to try and add a tag to an ...
13 views

### Modifying the size of an asymptote image in latex export

I have been using Asymptote to make pictures that can be included in Latex documents. I recently discovered that Org mode plays well with Asymptote https://orgmode.org/worg/org-contrib/babel/...
53 views

### Search in recent files

I use helm-recentf to receive the list of recent files. I would like to have an opportunity to search over the list of recently viewed files. Can I do it with grep or helm-swoop? Is there any other ...
48 views

### How to highlight 80 columns when it contains a single % at the start

How can I highlight 80 columns when a line has a single % at the very start? What I am looking for is that lines with a single % stand out by a colored rectangle 1 character high and 80 columns wide.
31 views

### Spacemacs keybinding to execute shell script in directory the file in the current windows buffer is located in

I need a keybinding (either a key like F12 or a mnemonic key sequence like SPC f12) in Spacemacs. When hitting the keybinding in a window containing a file in its buffer the shell script script in the ...
46 views

### Problems with inhibit-message [duplicate]

I'm attempting to suppress certain minibuffer messages, but can't seem to get my configuration to work. There are two stack exchange answers that address this (here and here) and both suggest using a ...
13 views

### wrong behavior of org-open-at-point with certain url

NOTE, this only happens on mac. Linux is fine. For the given link, which is directly copied from chrome url bar, https://lwn.net/Articles/262464/#Quick Quiz 5 org-open-at-point will open it as ...
12 views

### How to configure Spacemacs on Win10 to use’ispell

I just installed spell checking on spacemacs and received an error message that I didn't find the Ispell directory. I installed ispell, but I don't know how to tell spacemaacs ispll where and add the ...
41 views

### Ipython code block producing org table

I saw a python code block example to output an array as an org-table. An example would be, #+BEGIN_SRC python :results value r = 3389.5 # km average radius re = 3396.2 # equatorial radius in km ...
50 views

### Manual indentation in LaTeX mode

I'm new to Emacs, and dislike the default indentation in LaTeX mode. I want the indentation to do the following: insert a \t character (not spaces) be completely manual (I want to have to press Tab ...
17 views

### Spacemacs and mu4e - “[mu4e] No contexts defined”

I'm using the latest Spacemacs develop branch (updated this morning) and I think that the latest package updates might have broken something? I had just set up mu4e yesterday, and finally got contexts ...
19 views

### How to prevent preview-latex to manipulate and delete the pdf created by latex

Running latex-preview manipulates and then deletes the pdf created by latex. If skim is open as pdf-viewer the pdf gets sliced into the images created by latex-preview. Running latex again doesn't ...
22 views

### How to align latex tables when using macro folding

I have a latex table which contains some long commands like includegraphics or href which makes the table very nasty to read. To get a better view I fold all macros in the table and want to use ...
21 views

### cycling between minibuffer and last window|buffer

I'd like to cycle between an active minibuffer window and the last recent buffer. 1 (defun cycle-to-minibuffer-window () 2 (interactive) 3 (when (active-minibuffer-window) 4 (if (...
19 views

I'd like to get access to org mode's extra keys. However, although the value of org-use-extra-keys is set to "on (non-nil)" (and has been for several Emacs sessions), I don't seem to have access to ...
52 views

### org-table: add hline based on change in column values

Given the following org-table: | col1 | col2 | col3 | col4 | |------+------+------+------| | 11 | 12 | A | 14 | | 21 | 22 | A | 24 | | 31 | 32 | A | 34 | | 41 | 42 | B ...
25 views

### How to enable company-mode for some buffers only?

I would like company mode to lead automatically for some buffers like AucTex for example but not on other buffers like Org-mode global-company-mode Enables comapny mode everywhere and I only want ...
58 views

### org-mode: Export or show only headlines and the first paragraph below them

I want to export my org-mode document, but filter out all the actual content (well, ideally, just show it in the current buffer, but if that's harder to do, export is fine). That is, I want to only ...
16 views

### Emacs on MS Windows, typescript lsp server on wsl?

Long-time emacs user (38 years or so, not kidding). I'm on Windows 10, running native emacs 26.1. I'm doing some Javascript/Typescript (vue.js) development, using WSL for that world, still with the ...
18 views

### How do I cycle through file locations on counsel results?

I'm trying to look for all the occurrences of a word in my project and I'm using counsel for this. I get the list of occurrences and their locations in the minibuffer, but I'd like to cycle through ...
34 views

### How to hide header line in C++ mode?

I really don't want emacs to show me which function the pointer is currently inside. (See the photo) What is the name of that frame? How can I remove it or make show an empty line? I am using Emacs ...
41 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. ...
28 views

### Don't use completion text

When i am trying to rename a file in dired-mode, for just find a file with (C-x f), it uses auto-completion to help me out. Most of the time this is super useful. However when I am trying to rename a ...
7 views

### Wrong type argument: symbolp, possible mismatched parenteses in .spacemacs

I am trying to apply a fix to make it easier to change todo status in org mode. The code is the following: '( (org :variables org-want-todo-bindings t) ) from https://github.com/syl20bnr/...
55 views

### How to bind Ctrl-Super-[? [closed]

I tried (global-set-key (kbd "C-s-[") 'xxx) but when I use it I get: <C-s-268632091> is undefined
32 views

### How to disable the “Press M-x…” title line of org-search-view command's output?

I use GNU Emacs 26.1 and want to remove the following enormous message Press ‘M-x org-agenda-manipulate-query-add’, ‘M-x org-agenda-manipulate-query-subtract’ to add/sub word, ‘M-x org-agenda-...
21 views

How to advise code that pops up menus (like the ones you get by left-clicking a major-mode indicator in the modeline) to stay within the current Emacs frame? Background: Probably this is a bug within ...
24 views

### How to use phpactor.el in GNU Emacs 25.2.2

I am a Vim user for about a year now and I am curious to give Emacs a try. I discover Emacs for some days now and I would like to improve my PHP-editing experience. In Vim there is a plugin for ...
15 views

### How can I save the text-scale info when desktop-save-in-desktop-dir?

By default, even if I text-scale-decrease in some frames before I desktop-save-in-desktop-dir, when I restart Emacs and desktop-read, all frames show in the default text-scale. How can I save the ...
45 views

### How to store an eshell alias in init.el?

I like to keep my configuration as self-contained as possible, and I'm wondering whether there's a way to manage eshell aliases in my .emacs file. Is it possible to set up aliases with a function call ...
25 views

### how to append arbitrary string to yasnippet placeholder field

I would like to know how to append a default string to a placeholder. For example, I currently have: # -*- mode: snippet -*- # name: render template # key: rt # group: Flask # contributor: Jon ...
23 views

### Mode to edit SQL code inside XML tags [duplicate]

I'm new to emacs, does anybody know is there a way to combine xml-mode and sql-mode so SQL code inside tags can be highlighted and proper indent? example <FnTable ID="MyCode"> declare @ID ...
54 views

### Help me avoid “|| true” in org babel bash statements

I'm writing a lot of manuals on how to accomplish things in bash. Often I'm showing people something that doesn't work, and then go on to show what works. When I'm showing something that doesn't work, ...
28 views

### Search and replace isn't working in my function

I created the following function to remove macrons from vowels (this is a reduced version that only searches for the vowel "ā"): (defun nv/eliminatemacron () "" (interactive) (save-excursion ...
19 views

### disable title/header on helm-projectile result frame

I use helm-projectile-find-file and helm-projectile-ag on a regular basis. My issue is I want to remove the following lines C-j: Preview file (keeping session) and Projectile files from the result ...
37 views

### Previous indentation is discarded on newline

Let's say I have the following code: void foo(){ ~ } I have marked point with ~. When I press enter the electric indentation works as normal but it doesn't keep the indentation for the previous ...
10 views

### evil-embrace: remove default mappings

I use evil-embrace together with evil-surround and remapped the evil-surround keys with: (setq-default evil-surround-pairs-alist '((?b . ("(" . ")")) (?c . ("{" . "}")) ...
8 views

### Can I configure orgmode to NOT ignore time for (repeated) tasks scheduled yesterday or before?

I have in my agenda some tasks repeated every day at a given time (e.g. read mail at 9:00am). If I don't do it one day (e.g. Saturday), I want to still see it at the same time the next day (it used to ...
14 views

### Encrypt both mail body and attachment with gnus

I'd like to encrypt with gpg some mail messages sent with gnus. When there is no attachment, epa-mail-encrypt works and I get a gpg-encrypted mail message. However, if I add an attachment and then run ...

15 30 50 per page