All Questions

0
votes
1answer
44 views

Regexps: 2 strings without a character in between; 2 chars w/o a string in between - Stack overflow in regexp mapper

I am trying to search through some babyl files for errors. The files are email messages that appear between ^L and ^_ (Control-L and Control-_), with a special string "\*\*\* EOOH \*\*\*" in between, ...
0
votes
2answers
34 views

How to enable the breaking of code blocks in a PDF?

As shown here, Control's code (and the code of the sections after it) are on subsequent pages. I want the code to be shown directly in the same subheading. My subheadings look like this: *** ~Code ...
1
vote
1answer
12 views

right click for menu with choices (to change font size)?

I am using emacs 26.1 under macos. when I right-click with the mouse, emacs seems to want to select the region. alas, I would prefer to see a popup menu where I can select a few choices that I would ...
0
votes
0answers
18 views

Display #+INCLUDE File Contents in Github README.org?

I learned from How to embed external file contents in org file? about including contents from another file into the org file. I tried that for my README.org. My code in org file looked like this: #+...
2
votes
1answer
27 views

Add multiple predicates to isearch-filter-predicate

I wrote a set of predicates to filter matches in my ìsearch-* and query-replace* routines. I also wrote a macro to bind the isearch-filter-predicate variable to multiple predicates: (defmacro with-...
6
votes
2answers
85 views

How to use abbrevs

I find using abbrevs in Emacs confusing. Despite reading the manual and the EmacsWiki, I continue to have problems using them. Goal: Define a quick, throw-away abbrev for a single Emacs session. ...
4
votes
1answer
60 views

How to automatically kill a shell buffer when the shell process exits

In shell-mode when you exit the shell process (e.g. by typing exit) the buffer still hangs around (with the message "Process shell<1> finished"). How can I automatically kill the shell buffer when ...
3
votes
1answer
33 views

Where are org-publish-project-alist variables and properties documented? [closed]

I am learning orgmode publishing. There are some org-publish-project-alist variables and properties I am not finding in the documentation. Maybe I am looking in the wrong places. Where else are the ...
1
vote
1answer
59 views

Emacs for Windows: How to M-x compile using MinGW_32

I have been using Console2 on an MS Windows box to compile and would like to use Emacs instead. My settings on Console2 are as follows: shell="c:/mingw/bin/sh.exe --login -i -c 'cd /c/docume~1/...
1
vote
1answer
40 views

Filter agenda for all open TODO items and all DONE items from past 7 days

I would like to use org-mode to facilitate weekly standups at work with people. I would like a workflow whereby I can filter the org agenda TODO list to only contain open all open TODO items in ...
0
votes
1answer
18 views

spacemacs and “file name too long” error on auto-save

I reorganized some of the folders on my computer, in an attempt to get rid of old stuff and organize useful stuff. So with the new directory structure, I am getting all of these auto-save errors. ...
0
votes
1answer
19 views

error in process filter: Invalid byte opcode: op=183, ptr=6

I am installing mu4e. Pulling email and indexing with mu both work. But calling M-x mu4e gives: error in process filter: Invalid byte opcode: op=183, ptr=6 In addition, if I add these lines to ~/....
0
votes
0answers
39 views

Fail to view PDF with pdf-tools

I have installed pdf-tools by melpha, and write a line in init.el file to load it. However, when I opened my pdf files I still couldn't view it and the error of "Error running timer ‘pdf-cache--...
0
votes
0answers
17 views

Stop ido-find-file opening directories as dired buffer

I use ido-find-file to open files on my disk. The defaul behaviour is that if I type (part of) directory name RET, ido-find-file enters the directory and I can continue searching for my file. Since ...
0
votes
1answer
17 views

Binding simple keys in spacemacs

I would like to set a projectile find file function to the hotkey C-e, and a elpy-goto-definition function to the hotkey F12, but I'm not sure why spacemacs is not recognizing the config that I'm ...
1
vote
0answers
68 views

How to customize the sequence of commands executed by the C-c C-a shortcut (`TeX-command-run-all`)?

How do I need to set up Emacs/AucTeX, so that when I type C-c, C-a, the following sequence of commands will be run? (Note: the LaTeX file name is test.tex.) lualatex test makeglossaries test ...
0
votes
0answers
7 views

Stop indentation from altering pre-formatted text

.preformatted { white-space: pre-wrap; } <div class="preformatted"> THIS TEXT IS PREFORMATTED <= no spaces there, before pasting this text in this code ; It should render ...
0
votes
0answers
14 views

Reset dir cache for Ido

I very often find myself in the following situation: Open a file in a directory foo/bar Rename the file and/or created another one from a command line: cd foo mv bar bar2 touch bar3 Try to open any ...
1
vote
0answers
21 views

Setting up Knittr workflow in Emacs [duplicate]

I was a happy ESS and R user to obtain tex and pdf files from Rnw file with sweave and knitr. I have followed the answer given here, everything worked fine but after several updates or maybe new ...
1
vote
0answers
24 views

LaTeX glossary doesn't typeset (AucTeX)

Consider the following LaTeX file (named test.tex) demonstrating the use of the glossaries-extra package. \documentclass{article} \usepackage[automake]{glossaries-extra} \newglossaryentry{potato}{...
0
votes
0answers
13 views

tramp hanging on remote fish shell despite tramp-remote-shell being /bin/sh

I can't connect via Tramp to a remote machine since switching to using fish as my default shell. However I have the tramp-remote-shell set for "/bin/sh" but this seems to be only used for interactive ...
3
votes
0answers
78 views

How to update Org-mode through Emacs' Package Manager?

I have org-version 9.1.9 installed and am attempting to install the latest version 9.2.2 I followed the instructions on https://orgmode.org/worg/org-faq.html#installing-via-elpa. On my system, M-x ...
0
votes
0answers
7 views

how to disable multiline highlighting for org-emphasis?

Be default, org-emphasis can span across 2 lines (but not 3), e.g., the words "is an" is highlighted as bold in the following example: This *is an* example. I don't want that kind of highlighting, i....
1
vote
1answer
35 views

Compile Latex without Saving, and without Query

I know that I can disable the save query that comes after running TeX-run-TeX with LaTeX, TeX or actually probably any other NAME parameter (this is what happens when you invoke TeX-command-master, ...
0
votes
0answers
22 views

Cursor skips over backquotes/code blocks in markdown-mode

I use markdown-mode for editing Markdown. When I'm trying to edit code blocks defined using backquotes (`) or multiple backquotes, my cursor skips over the backquotes, making it hard for me to edit ...
0
votes
1answer
59 views

“No such file or directory” “org-publish”

I am following tutorial on https://orgmode.org/worg/org-tutorials/org-publish-html-tutorial.html. I move point to the end of this line and press C-x C-e to load org-publish: (require 'org-publish) ...
1
vote
0answers
28 views

Org-mode ellipsis arrow is not using my defined encoding (utf-8)

First, some info on my system/version: Windows 10 Emacs 26.1 (I'm new to Emacs, so let me know if there is more information I should provide) This is what is happening: The image above shows that ...
0
votes
2answers
105 views

Add dotted line in org-mode for export to latex and ODT

I can get the desired result consumable1........................................month/year consumable2........................................month/year consumable3.....................................
2
votes
1answer
24 views

How to see manual for god-mode and other packages?

I installed god-mode and I can't see any manuals to learn how to use it. Also how do I enter insert mode? god-mode is unusable without it
1
vote
1answer
52 views

Custom command in org-mode agenda

I have two files in my agenda: current.org and later.org. My setup has it so that current.org has all active tasks (state TODO) and later.org has all inactive ones (state LATER). Right now, in my ...
0
votes
1answer
30 views

Cannot jump to file or location link in grep-mode or compile-mode

I have recently installed emacs on a new system (Manjaro arch-linux), using my usual configuration (available here, if relevant). However, the jump function never works on this new system: whenever ...
0
votes
1answer
17 views

Fail to start Python Language Server when Python virtual env is activated from .dir-locals.el

I have the following in a .dir-locals.el ((python-mode . ((pyvenv-workon . "3.7") (projectile-project-compilation-cmd . "python -m unittest fixcompdb_test.py")))) I use lsp-mode and the Pyls ...
6
votes
1answer
383 views

Setf weird expansion

Trying to understand what setf can do, I called (macroexpand '(setf (aref vec i) val)) ⇒ (let* ((v vec) (v i)) (aset v v val)) This seems obviously wrong. However I couldn't create an actual ...
2
votes
1answer
51 views

How to have a buffer interpret C-m as an actual carriage return

I'm using the following elisp snippet in a dedicated buffer to track progress of a wget download. (with-current-buffer buf (setq proc (apply 'start-process "my-download" buf (list "wget" (...
0
votes
1answer
24 views

How to count the number of clocks of some given duration?

I want to collect statistics about some clocked events; more specifically I need to count the number of clocked events (belonging to some subtree for instance) whose duration is in some predefined ...
0
votes
0answers
30 views

Remapping keys in org mode agenda view

I currently trying to remap my org mode agenda keymap in Spacemacs for org-agenda-next-item and org-agenda-previous-item. In the agenda view I like to map the functions to k for next-line and l for ...
0
votes
0answers
16 views

Haskell-mode-hook help window keeps opening

I installed haskell-mode, but every time I press RET or TAB on a Haskell file it keeps opening that window Any idea on how to deactivate this ?
0
votes
1answer
14 views

Is there any way to expand sub 'item'(not headline) tree cyclically?

In org-mode, is there any way to expand sub 'item'(not headline) tree cyclically? I tried hitting TAB(org-cycle), but it expands headline and all sub item tree showed at once. Here is the example. ...
2
votes
0answers
56 views

How to Add Document Class to AucTeX

I have a .cls LaTex template I would like to use regularly. Where/how should I save it so that AucTeX is aware of it? How does one set up LaTeX templates in Emacs/Spacemacs in general? I find very few ...
1
vote
1answer
38 views

How do I display an image full width?

I am using GNU Emacs to display the cover of the album mpd is currently playing, inserting it into a *jukebox* buffer with this code: (put-image (create-image albumartname 'imagemagick nil :width ...
0
votes
0answers
9 views

Org-refile Strip lowest heading from list in helm mini buffer

I have set up several files for org refile as targets. I have defined their max levels. However, it is often hard to define precisely the max level depth for a given file since the hierarchy of nodes ...
0
votes
0answers
19 views

Org-refile in Helm Mini Buffer does not fontify Headings

I am using spacemacs and org refile and have set the following variables: (setq org-refile-use-outline-path 'file) (setq org-outline-path-complete-in-steps nil) I also defined three files via org-...
0
votes
1answer
31 views

Elpy keeps prepending backslash to my python path

I am trying to set my Elpy on my home machine and, so far, everything works except actually running the Python interpreter. I normally launch the interpreter and run code via C-c C-c, but when I do ...
0
votes
1answer
19 views

Org-mode not exporting frames correctly using beamer

I'm writing a presentation using Org-mode and beamer. The problem is that all the frames are putted into a single one. I have the following code: #+TITLE: \textbf{example} #+AUTHOR: \large{sdjfioa} #+...
4
votes
2answers
49 views

How to run whichever function is bound to a certain key

There are a lot of occasions where, by default, the key-binding C-c C-c does something useful - e.g. in org-mode or magit. I would like to take whatever function C-c C-c runs, and bind that function ...
1
vote
1answer
26 views

Cannot run cquery

I have been using rtags as my primary C++ mode, but I found that it's performance is not satisfying for large code bases e.g. Linux kernel. It takes more than 5 seconds to find definitions. This it ...
2
votes
1answer
30 views

with-slots with defstruct “class” instance

Is it possible to use a with-slots-type macro with an instance of a defstruct-defined class in emacs lisp? I tried and I'm getting this error: eieio-oset: Wrong type argument: eieio-object, "some-...
1
vote
1answer
32 views

Variable's value in mode-line?

I have this function that sets the isearch-filter-predicate variable to a predicate (function) from a list of predicates: (defun set-isearch-filter-predicate () (interactive) (unless (boundp '...
0
votes
0answers
11 views

emacs in putty session on fedora under virtual box on windows 10 hangs on X11 paste

I suffer a rangy environment where I typically will run emacs in a putty session on fedora under virtual box on windows 10. Sometimes (not all of the time), pasting into the emacs will hang the ...
2
votes
0answers
33 views

Valgrind interface for emacs

Is there an interface similar to 'gdb-mi' for using Valgrind in emacs? What are some ways to use Valgrind inside emacs?

15 30 50 per page