All Questions

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

How to improve Emacs f90-mode function `f90-end-of-block` so that it can handle those blocks with block names omitted

In Emacs f90 mode, there are two useful functions f90-beginning-of-block and f90-end-of-block, (bound to keys C-M-p and C-M-n,repsectively), which I often use to jump between beginning and end of code ...
0
votes
0answers
5 views

org-publish: publish exactly files in a given list

I have hundreds Org files under a directory hierarchy and would want to export only those recently modified in HTML to speed up the process. I have the following project alist that I feed up to org-...
0
votes
0answers
3 views

How can one configure orgalist-mode to be able cycle through numeration schemes?

In org-mode and in the defunct orgstruct++-mode, one can cycle through enumeration schemes via Shift-Right-Arrow. For instance, from 1. toto 2. titi to A) toto B) titi This does not seem ...
0
votes
1answer
7 views

How to open multiple files from desktop in the same emacs session?

I use Pop OS 20.04 on my desktop. When I start Emacs on login, I run the command (server-start). So when I open a file using the command emacsclient <filename> it opens it in the currently ...
0
votes
0answers
7 views

How do I regenerate `~/.emacs.d/index.sqlite`?

Is it correct that the following little error novel indicates I am missing ~/.emacs.d/index.sqlite? How do I regenerate ~/.emacs.d/index.sqlite? Debugger entered--Lisp error: (void-function -compose) (...
0
votes
0answers
3 views

org-roam not using properties drawer id links

The org-roam docs say: Links to headlines can be inserted by navigating to the desired headline and calling org-store-link. This will create an ID for the headline if it does not already exist, and ...
0
votes
1answer
9 views

How to remove first line indentation in org-mode, in the editor?

In org, whenever I create a new tree and make a new line, the editor automatically indents only this first line (different behavior of older versions). I'd like the editor to behave so that it does ...
1
vote
0answers
9 views

How to get help on Doom's own functions

I use describe-function command with SPC h f to get help on emacs functions. But I want to get documentation on Doom's own functions such as map!. describe-function doesn't list this function. How can ...
0
votes
1answer
11 views

org-roam and persp-mode.el: persp-def-auto-persp has nil (buffer-file-name)

I would like all org-roam buffers to automatically go into a persp-mode.el perspective. org-roam-mode is a global minor mode, so I can't use that as a way to detect whether a new buffer is for org-...
0
votes
1answer
36 views

Having a hard time understanding some of Paul Graham's example code in his book “On Lisp”

https://sep.yimg.com/ty/cdn/paulgraham/onlisp.pdf On page 36 Paul introduces the following function: (defun flatten (x) (labels ((rec (x acc) (cond ((null x) acc) ...
0
votes
1answer
13 views

How to select and replace the content of all specific org-headings?

I am trying to select each content-heading extracted with org-noter and then remove all erroneous newlines. This is my function. (defun sanitize-noter-import () "Sanitizes org-noter imports. ...
0
votes
2answers
21 views

Prevent `(keyboard-quit)` from closing `*compile*` windows

After a recent update to my Spacemacs install, I noticed that C-g i.e. keyboard-quit closes *compilation* buffers that result from an M-x recompile. How can I prevent this behavior? I don't want C-g ...
0
votes
0answers
2 views

slime-call-defun equivalent in sly?

Slime defines two commands: slime-call-defun and slime-eval-last-expression-in-repl which take the function name of where point is (or whatever) and copy it over to the REPL prompt and position point ...
1
vote
0answers
19 views

How do I bind C-x p to the project.el project-prefix-map?

Following the advice of Mastering Emacs I'm trying to use the project.el package. My problem is that C-x p isn't bound to the prefix keymap and I can't figure out how to bind it correctly. I'm pretty ...
1
vote
1answer
14 views

When emacsclient open with eval using use-package it opens waiting M-x

I am trying to create a bash alias to open emacs with a calendar from terminal. To do so I am using calfw with use-package like so: (use-package calfw :ensure ;TODO: :config (require 'calfw) (...
1
vote
1answer
14 views

Evaluating inline source code in Title

Is there a way to make my document title dynamic, for instance like this : #+Title: Annual report for year src_emacs-lisp{(- (string-to-number (format-time-string "%Y")) 1)} Should render ...
0
votes
0answers
10 views

Embedding `org-id`s into their headers when exporting to HTML

I have need to export org-mode files to html for a wiki like system. I am making use of org-protocol so that I can act on links in html files with emacsclient, usually to open an org buffer at point ...
2
votes
1answer
22 views

Abbreviate “/home/user/file” to “~/file” in formatted fields (frame-title-format, etc.)

I have Emacs display the full path of the file in my window title: (setq-default frame-title-format '("%f [%m] - Emacs")) And in my mode-line: (setq-default mode-line-buffer-identification ...
1
vote
2answers
22 views

String-match: symbols variable void

I am trying to write a small function where I extract two sub-strings from a cite-key, e.g. cite:rammstein2017paris. (defun citekey-get-author-and-year () "Get the _author_ and _YEAR_ ...
0
votes
0answers
15 views

How to get variable type definition in lsp for using in Lisp code?

I want a helper command for refactoring code in Go language. I have not found ready for use function for this task in go-mode and lsp. It should declare variable from the word under the point and ...
1
vote
0answers
12 views

How do I make lsp-mode ignore a node_modules folder + others?

I want to know how to make lsp-mode ignore a node_modules folder (along with say, folder asdf and temp). This is what I have: (setq lsp-file-watch-ignored (rx (or "node_modules" "asdf&...
0
votes
1answer
38 views

Is there a way to narrow down grep results?

When I search with grep, I get the results like: -- mode: grep; default-directory: "~/code/" -- Grep started at Wed Feb 24 12:40:28 find . -type d ... that is followed by multiple lines ...
0
votes
1answer
10 views

Binding option + arrow keys/backspace on Mac OS while still being able to enter special characters

I want to be able to bind ⌥← to move the cursor to the previous word, ⌥→ to the next word, ⌥↓ to scroll down a page etc. in Emacs on Mac OS, as in native text editing controls, but also still be able ...
2
votes
1answer
26 views

Org-mode: disable abbrev-mode in source blocks

I use org-mode to write an executable paper, combining text and code. I make use of abbrev-mode to insert text more efficiently (e.g. type 'bc' to insert 'because') and to correct spelling errors. Is ...
0
votes
1answer
13 views

How to distinguish a scroll from a change of buffer in a function called from ‘window-scroll-functions’?

I've written a function that recenters the point each time it makes a long jump and I added it to the hook window-scroll-functions. The length of the jump is determined by comparing the return value ...
0
votes
1answer
15 views

How to make image-dired work on remote files?

I've tried sshand scp for tramp's method (both work for tramp), yet image-dired thumbnail creation fails Thumb could not be created for /scp:raspi:/media/pi/91D4-7E58//IMG_1.JPG: exited abnormally ...
0
votes
0answers
9 views

Dependent state in org-babel :var arguments

I enjoy using org-babel for testing/exploring API HTTP endpoints. #+BEGIN_SRC http :var access-token=select-access-token-from-sql :pretty GET http://localhost:3000/api/items/71 Authorization: Bearer ${...
0
votes
0answers
13 views

How to turn the result returned by `org-sbe an-src-block` into list (of lists)?

In MWE.org, the source blocks list-files, summarize-files-1, and summarize-files-2 are defined to summarize files. The list-files source block gives the filenames. The summarize-files-1 and the ...
2
votes
1answer
27 views

Search and replace with many possible replacements?

Suppose I have a code base with many instances of string "console.log(" for example. I want to replace each one with one of the following six lines: logger(FATAL, logger(ERROR, logger(...
1
vote
0answers
13 views

getting adaptive-wrap-prefix-mode to fill with spaces

Hi I'm working on some assembly language files. Here is a relevant snippet // Wait for line $ff and prepare next frame loop2: lda #$ff // <- Inside the ...
1
vote
1answer
39 views

I am writing Fortran code in emacs but the tab key behaviour changes in F90 mode. Can I change it back?

On loading a f90 file, emacs changes to F90 mode, which changes some emacs behaviours. When I press <tab> emacs inserts two spaces at the left margin. Now when I use the backspace key it deletes ...
1
vote
0answers
24 views

Emacs M-x binding on Mac M1

In emacs M-x command-name can be used to invoke a command. However in Mac M1, for some reason, this is not working. Basically, I am trying option + x or M-x. Any idea about this?
0
votes
0answers
13 views

emacs daemon Error reading from stdin

I messed up my emacs and having trouble run emacs --daemon properly. I am using GNU Emacs 26.3. M-x returns Error reading from stdin. I have following lines on .zshrc: export ALTERNATE_EDITOR="&...
0
votes
0answers
13 views

How to take line from recent commit with Magit

Use Magit to view the log with show diffs (-p). Inspect 4 commit old commit. Navigate to a few lines I've since deleted, but want back my project. I can mark the lines but cannot copy them, which ...
0
votes
1answer
20 views

How to use Emacs to prevent screen lock from activating (Windows)

My employer has a pretty paranoid screen locking policy on Windows machines. There's no way to override the time settings for the lock. My colleagues an I have been experimenting with various homebrew ...
0
votes
1answer
59 views

Confused by what Paul Graham says about locality in his book “On Lisp”

https://sep.yimg.com/ty/cdn/paulgraham/onlisp.pdf On page 36 Paul writes the following: The conditions above do not guarantee the perfect locality you get with purely functional code, though they do ...
1
vote
1answer
37 views

How to set env values for eshell in emacs on macOS?

If use iTerm on macOS, we can set env values in its terminal. It also set path such as /usr/local/bin/ in ~/.bashrc. But in emacs' terminal as eshell, run kubectl shown kubectl: No such file or ...
1
vote
1answer
43 views

where are org-mode issues tracked?

Where are org-mode issues tracked? What I mean, why I ask: I'm having a problem with arbitrary text immediately preceding inline markup, which is the best way I can find to express the general problem ...
1
vote
0answers
21 views

How to edit a documents outline in pdf-tools?

By pressing o you can open the outline for the pdf document. Is there any way you can also add new sections with the corresponding pages to this outline?
3
votes
0answers
21 views

In latex-mode is it possible to disable auto-fill-mode in between `\begin{figure}, \end{figure}`

I am working on tex files with LaTeX-mode. If possible, I want to use auto-fill-mode in some conditions. I was wondering is it possible to disable it in between some patterns like: \begin{figure}[ht]...
0
votes
1answer
25 views

Exit Emacs Calendar without having to save the diary file

When I create appointments in Emacs diary via the calendar, I have to save changes to the diary file before being able to exit the calendar. I have tried to set up Emacs to automatically save the ...
0
votes
0answers
6 views

dired and some keyboard shortcuts don't work on Emacs on MacTerm's vt220 emulator

I use MacTerm 4.0 on OS X 10.7.5 and I use the vt220 option base emulator. When I open emacs -nw on it, when I press C-x C-c (to quit Emacs) it says C-x C-g is undefined When I type C-x C-s (to save ...
0
votes
1answer
28 views

Persist variables (and maybe input history) across restarts

Sometimes I wish to persist the value of some variable when I quit emacs. For example, I would like to do this for compile-command. Now, I guess I could find the hook that is run when Emacs quits (...
1
vote
1answer
15 views

How do I use global-unset-key for non ASCII characters?

I am using QWERTZ with Czech layout and to write certain characters like { and } I have to press down option, however in my emacs (using the emacsformacosx version) the option key is bound to the Meta ...
0
votes
0answers
24 views

Compiling gccemacs (Emacs 28) from source. To bootstrap or not to bootstrap?

With the following build script on Big Sur + homebrew, I get horribly long compile times when using make bootstrap as opposed to simply make on gccemacs. I've read the Makefile in the src directory - ...
0
votes
0answers
27 views

Org-mode convert web link to PDF

I am trying to write two functions to do these: Function 1: When the point is on a link (in an Org file), generate a PDF from that link (I am thinkng of using wkhtmltopdf. Side question: does ...
0
votes
1answer
17 views

Fetching email from multiple accounts via both Lieer (gmailieer) and isync with Notmuch

I was wondering if I can use both isync and Lieer (gmailieer) at the same time to pull email from multiple Gmail and multiple non-Gmail accounts (each account being in a separate subdirectory in my ...
0
votes
1answer
17 views

Replying to all recipients with Notmuch and msmtp

I have tested sending an email to multiple recipients with Notmuch through msmtp and it works. I can also copy all recipients of email to kill-ring (via notmuch-show-stash-to), no problem. However, ...
0
votes
0answers
32 views

Configure ryo-modal to execute function from evil-ex-commands alist

I would like some help in configuring ryo-modal, via use-package, to run a command from the evil-ex-commands alist, using ("ll" (cdr (assoc "wq" evil-ex-commands))); however, I'm ...
0
votes
2answers
29 views

Org Mode evaluate diff code block

I'm writing a programming tutorial. In between the prose I have diff code blocks that show exactly what changes are done to the code on each step. To make sure the diffs are correct I'd like to be ...

15 30 50 per page
1
2 3 4 5
422