All Questions

1
vote
1answer
17 views

How to append an argument to an external command in init.el?

I 1must append a config file to 2package command, required as -p puppeteer-config.json. In my init.el, I tried changing the native command as shown below: From: (setq ob-mermaid-cli-path "~/...
0
votes
1answer
5 views

"error in process sentinel: not enough arguments for format string” with simple R code

Flymake started giving this warning today: Error in process sentinel not enough arguments for format string The mode line shows Flymake:Wait [0 0]. I narrowed down the code throwing the error to a ...
0
votes
1answer
16 views

Spawn a bash outside emacs?

I am trying to spawn a shell outside emacs, not in a buffer. I have tried (start-process "firefox" nil "firefox"), wich does start a firefox process outside emacs, but when i tried (start-process "...
0
votes
0answers
17 views

C++ Windows Compilation Error/Warning Regexp

I am trying to setup a compile for Emacs on Windows using the CL C++ compiler provided by Windows with Visual Studio 2017. https://imgur.com/a/M80uTWH as can be seen from the above image, however, ...
1
vote
1answer
15 views

Multi-processing via TRAMP with asynchronous shell commands

I found the following code in TRAMP: (defun tramp-adb-handle-shell-command (command &optional output-buffer error-buffer) "Like `shell-command' for Tramp files." (let* ((asynchronous (...
0
votes
0answers
3 views

Org links to regex under portable subtree

Is it possible to have links like this? [[id:a5e9935a-9b82-480d-9c27-74a71bfac27a::/regex/]] That is, links to a match under a portable subtree? This, at least, did not work.
0
votes
0answers
8 views

How to create a single tags table if there are multiple folders and multiple files in those folders

I am trying to create a tags table for all the folders and files inside a directory. But I am facing issue that TAGS is not a valid table. Please suggest if there is any way by which I can apply a ...
2
votes
1answer
18 views

pcase matches with rx but not with regex

(rx bos (1+ (in "0-2")) eos) evaluates to "\\`[0-2]+\\'", so I expected these two functions to be equivalent: (defun with-rx (s) (pcase s ((rx bos (1+ (in "0-2")) eos) "matched") (t "not ...
1
vote
1answer
13 views

Possible to supress the: “Blocking call to accept-process-output with quit inhibited!!” message?

When running a process from a timer, this message is printed a lot. Is there a way to suppress the message entirely? For reference see: https://emacs.stackexchange.com/a/50681/2418
0
votes
1answer
19 views

view log file effectively

I searched logviewer and still not get right one! My idea is: Open a log file with log mode, then screen split with 3 window: 1 for orignal log file, the second one for filter keyword lines (regex ...
0
votes
1answer
22 views

Testing Emacs Lisp Code Involving Org Mode

I'm trying to figure out how I can use ERT and libraries like el-mock to test simple functions that manipulate my org-document. Consider a function like this: (defun promote-next-heading () (org-...
0
votes
0answers
6 views

Spacemacs always replaces single letter `n` with `>>>` when I exit insert mode

If I type n, +n, \n in insert mode and exit to normal mode, n will always be replaced with >>>, which is very annoying. Does anyone know how to fix this? I have this behaviour in default ...
0
votes
0answers
13 views

Running emacsclient does not load my display settings

I'm trying out emacs daemon and emacsclient in Linux. There's one thing I haven't been able to figure out: whenever I run emacsclient, my display settings (e.g. font) don't load, as opposed to what ...
0
votes
1answer
36 views

How to save all modified buffers and kill emacs

I use the well known key-binding C-x C-c to quit emacs. However this command asks y/n confirmation to save modified buffers and if there are process buffers (eg. Shell) it also asks for yes/no ...
0
votes
1answer
32 views

How to make flyspell automatically check all visible text?

When flyspell is enabled it doesn't show spelling errors on all visible text (like most text editors that support spell checking). When moving the cursor over text, misspelled words become underlined....
2
votes
1answer
45 views

trying to make a self-modifying function [duplicate]

I'm trying to make a function that returns a list of perfect numbers: A perfect number is a positive integer that is equal to the sum of its proper positive divisors For instance, 28 is perfect ...
1
vote
1answer
23 views

Org-mode Auto-Fill-Mode

Whenever I open an org file, I have to activate auto-fill-mode and go through every signle line that I need to read and press RET to get a filled paragraph. Is there any way to globally set auto-fill-...
1
vote
1answer
29 views

Org function to hide content

Is there an org function or combination of such that will hide all content but keep the currently visible headings visible? That is, something like org-content but which does not show currently ...
0
votes
0answers
25 views

Proper syntax highlighting of $…$ in org-mode

I've put (setq org-highlight-latex-and-related '(latex script entities)) in my emacs config and yet $..$ that contain more than one symbol aren't highlighted properly: How to fix?
1
vote
1answer
12 views

A global version of evil C-w

In vim and evil mode, normal-state C-w prefixes various window-related commands. For example, C-w l moves focus to the right, and C-w L moves the currently focused window to the right. I would like ...
0
votes
1answer
41 views

Latex compilation message in the echo area dissapears too soon

The outcome (success/error) of a Latex compilation (TeX-command-run-all) is printed in the echo area. Once you press a key, however, the echo area is cleared and the message is gone. I usually look at ...
3
votes
1answer
35 views

How to display *help* buffers below one specific window?

I am (really) new in Emacs and ESS, and I am currently trying to customize my environment. The default settings of ESS[R] are convenient for me, since ESS[R] organizes the windows as follows: --------...
2
votes
1answer
31 views

Jumping from a source block to the tangled file

Is there an inverse of org-babel-tangle-jump-to-org allowing one to jump from a source block to the corresponding place in the tangled file?
1
vote
0answers
38 views

Is that possible to make priority C higher than B?

From: https://orgmode.org/manual/Priorities.html You can change the range of allowed priorities by setting the variables org-highest-priority, org-lowest-priority, and org-default-priority. For ...
1
vote
1answer
50 views

Function to reprogram muscle memory

I've switched from emacs to spacemacs, but my muscle memory still uses the standard emacs keybindings -- despite attempts at avoiding key chords. As an example, to save a file, I continue to use Ctrl ...
1
vote
1answer
11 views

How to stop web-mode from reindenting after yank?

I'm editing this code: callFunction({ x: somearray, }); Then I want to extract somearray to be a variable with a copy. I cut somearray and delete the colon, then enter (_ is the cursor): const ...
0
votes
0answers
11 views

Search region instead of search inside region [duplicate]

When a region is active, emacs searches (Ctrl+Sor Ctrl+R) within that region. I would like to change that so that it searches in the whole buffer with the region as pattern. Any toughs ?
1
vote
1answer
25 views

Label format in RefTex

I am trying to configure RefTeX/AUCTeX so that the smart label-creation, invoked with C-c ( has the following sets of behaviors: for \section-type labels, i.e., for \section, \subsection, etc. ...
1
vote
2answers
36 views

Move point inside of image overlay

I'm trying to create a realtime/WYSIWYG editor for LaTeX fragments -- the general idea is that at each move of point / edit of the fragment, the overlay should update to reflect the newly changed ...
5
votes
1answer
85 views

Surprisingly persistent local variable

A local variable keeps coming back, and I don't know whence. In a certain buffer, TeX-command-extra-options is "--synctex=1", even after I have removed this from my init.el and restarted Emacs. I ...
6
votes
1answer
108 views

Removing the last element of a list

Is there a simpler way to remove the last element of a list than this? (setq list (reverse (cdr (reverse list))))
0
votes
0answers
17 views

Projectile renaming buffer name causing issues with ESS (ctrl enter) functionality

I have recently installed projectile package into my Emacs. It's great package, however, now my C-RET binding to ESS (R) is not working any more. Part of my current init.el related to ESS looks like ...
1
vote
0answers
35 views

why does this function keep updating the same result? [duplicate]

I am trying to do the following exercice: Given a DNA string, compute how many times each nucleotide occurs in the string. DNA is represented by an alphabet of the following symbols: 'A', 'C', ...
0
votes
2answers
45 views

package-autoremove doesn't work

I tried to use M-x package-autoremove but my .emacs.d directory is still a mess: it's full with several versions of the same package. As side info I use the no-littering package, but when I update ...
2
votes
1answer
66 views

Is there a timsort implementation in Emacs Lisp?

Timsort is the default sort algo of Python and Java and it performs better than mergesort on roughly sorted lists. I could not find any implementation of this in Elisp. How can I find out whether ...
1
vote
1answer
30 views

how to copy a deeply nested binary file from one git repo to another [on hold]

I want to copy an image file from one github repo to another. The source and destination file paths are deeply nested within the repo (eg. copy ~/code/repo1/src/components/A/components/B/common/...
0
votes
0answers
25 views

Writing file when switching buffer

I'm using a rather stock Prelude emacs version with super-save disabled, but still whenever I change buffers using C-x o, whatever buffer I currently have focused writes to disk. I still want the auto-...
0
votes
2answers
20 views

macos: binding command-plus and command-minus to text-scale-increase and text-scale-decrease

Emacs 26.1: C-h v tells me that command-"+" is "s-+". how do I then define a properly working (global-set-key "s-+" 'text-scale-increase) ?
2
votes
1answer
76 views

Why Emacs (dired+) asks me twice to delete file?

windows 10, Emacs 26.1, dired+ Suppose I want to delete (move to trash) file in dired mode. D Emacs asks me: I press y and now it's asking me again to kill file. Why Emacs asks me twice? I want ...
0
votes
1answer
45 views

Preventing `TeX-command-run-all` from shifting focus

It seems that TeX-command-run-all shifts focus to the pdf window, which is quite annoying. Is there a way to prevent that?
0
votes
0answers
6 views

How to generate .eclim configuration file on project root directory

I am trying to use eclim-java-run-run function, and this error comes up: Debugger entered--Lisp error: (file-missing "Opening input file" "No such file or directory" "~/eclipse-workspace/...
5
votes
3answers
90 views

Image and text side by side in Org-mode – how to flow text around an inline image?

Images can be easily displayed inline in an Org-mode file. #+STARTUP: inlineimages * headline 1 ** headline 2 [[./dog-o.jpg]] This text should be displayed to the right of the image above. ...
2
votes
1answer
39 views

what does grave accent ` and aposrophe ' do in elisp regular expression?

I use C-h v to check the doc about this variable org-agenda-file-regexp. It says it is a variable defined in ‘org.el’. Its value is "\\`[^.].*\\.org\\'" What is the meaning of grave accent ` and ...
0
votes
0answers
34 views

replace char at position using Emacs script

Below script will insert a char at position: #!/usr/bin/env emacs --script (defun modify(filename) (find-file-literally filename) (goto-char 3) (insert "\x39") (save-buffer 0) (kill-buffer)...
0
votes
0answers
12 views

Cannot open URL link in emacs under msys

When trying to open URL link in emacs under MSYS2 I get the error browse-url-default-windows-browser: Searching for program: No such file or directory, cygstart. Looking into the function browse-url-...
1
vote
1answer
25 views

use-package won't load

I use the same configuration of emacs on multiple machines, and I want to use use-package to keep the packages the same on all machines. I have an init file in each machine's home directory that ...
1
vote
2answers
86 views

How check that text in quotes are lowercase text

example1: test "one" hi this is test "two" check I need to "three" this example2: test "one" hi this is test "Two" check I need to "three" this Is it possible to check that text (some function) in ...
0
votes
0answers
6 views

spacemacs - rebind existing keys

I am trying to rebind j, k key as well as capital E, B and Y, but cannot get them to work. Any pointers? I put this into my .spacemacs (in dotspacemacs/user-config): (evil-define-key 'normal key-...
0
votes
0answers
16 views

Mac OSX and remote Emacs sessions, keybindings

I have questions regarding keybindings and cut & paste for Emacs and OSX v10.14.3. I'm hoping there are some Emacs users with similar configurations that can provide guidance as to be productive ...
0
votes
1answer
20 views

What's this `slot-missing: Invalid slot name: “#<transient-prefix transient-prefix>”, :incompatible`

After updating to magit 20190517.1750 from ELPA, I've got this warning slot-missing: Invalid slot name: "#<transient-prefix transient-prefix>", :incompatible which breaks a lot of magit ...

15 30 50 per page