All Questions

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

Lsp-mode on org-mode babel

In my quest to find ways of making emacs more snappy, I installed lsp-mode. The main language I work with is R, and indeed using lsp-mode in .R files is much quicker than the ess built-in completion. ...
0
votes
0answers
4 views

How to use GNU Stow to manage the installation of Emacs-28.0.90?

I attempt to use GNU Stow to manage the Emacs-28.0.90 installed from source right now. At first I'm planning to set the Stow Directory as /usr/local/stow, the Stow Package Directory as /usr/local/stow/...
0
votes
0answers
5 views

How can I change color of comments if they are next to a table in org-mode?

In org-mode comments next to a table is same color as the table itself. Would it be possible to change the comments' color if they are next to a table? For | Timestamp | Money | |--------------+----...
0
votes
0answers
10 views

Can't find text end by "Logger" in many files

Linux Mint 20.2 Emacs 27.2 In current folder and many subfolders I has many files with tne next content: private static Logger logger = Logger .getLogger(JdbcDefaultAccountStatusDao.class); Here ...
0
votes
0answers
5 views

File is missing: Cannot open load file, No existe el archivo o el directorio, org-roam-ui

I installed the org-roam-ui package from emacs package-install but after trying adding these lines of code: Doom Add the following to your package.el Org-roam-ui tries to keep up with the latest ...
0
votes
1answer
12 views

How can I load some snippets depending of the extension of current file?

When I work on web files I usually use web-mode for javascript, php and css files, the problem I have is that yasnippet uses the current mode to find what snippets to load for that buffer ( as stated ...
0
votes
0answers
16 views

How to preserve numbers when exporting a file from orgmode

I have a number of org files I want to export to rich text. I have used in them the following numbering scheme 1. Point 1. 2. Point 2. 3. Point 3. together with ordinary org-headings like: * ** *** ...
0
votes
0answers
14 views

Error: End of file while parsing JSON

Error "End of file while parsing JSON" while trying to make request to monero-daemon-rpc. (require 'json-rpc) (setf monerod (json-rpc-connect "localhost" 18081)) (json-rpc ...
0
votes
1answer
23 views

How do I remove the key translation for function keys with modifiers?

I would like to bind the dedicated function keys (F1 through F10) using the standard modifier key, e.g. (define-key my-keymap (kbd "<S-F2>") #'my-function). However, this and similar ...
1
vote
1answer
11 views

Display attachment to mu4e message (a PDF) in the same window rather than new frame

I am using mu4e and pdf-tools. Whenever I go to open an attached pdf (e.g., with gnus-article-press-button) the attachment pops open in a new frame. How can I control where it pops up? Looking at that ...
0
votes
0answers
14 views

org-image-actual-width does not work when exporting as html

When I export my .org file to HTML the images assume their default value even with the restriction of the variable '(org-image-actual-width 700). The restriction works inside Emacs and if I add the ...
0
votes
0answers
5 views

Highlighting cited text in notmuch messages

When composing a GNU's message, the cited text gets highlighted with different faces depending on the level. This doesn't seem to work in notmuch out-of-the-box. How do I configure this correctly? It ...
0
votes
0answers
16 views

Display link font face in same color as the surrounding face

I'd like to remove :foreground color specificity from link face so that it displays in the same color as the surrounding face. For example, in the below image, "link" should be brown and &...
1
vote
1answer
22 views

How to warn before editing or saving a buffer whose underlying file no longer exists?

(NB: In this post, I will use expressions like "a buffer's underlying file" to mean, in the Emacs' documentation's terminology, "the file a buffer is visiting", i.e. the value of (...
0
votes
0answers
13 views

Syntax classes in character alternative regex group

I want to build a regex to match a group of characters which belong either to word (\sw) or to symbol (\s_) syntax groups. Is it possible to use syntax classes in the character alternative group regex ...
0
votes
1answer
22 views

Function argument does not seem to be visible inside of function

I use this code (found here) to highlight a single line in black: (defun find-overlays-specifying (prop pos) (let ((overlays (overlays-at pos)) found) (while overlays (let ((...
0
votes
1answer
28 views

How to disable momentary highlighting of a match by ggtags?

When I call gtags-find-tag-dwim, matches item will be highlighted for about one second. Like this: Please note that ggtags-highlight-tag has absolutely nothing to do with this highlight, I believe ...
1
vote
1answer
53 views

How to prevent the mode line color from changing after the buffer is switched?

like this: The mode line color of the current buffer is darker, I hope the color will not change.
0
votes
1answer
36 views

Change font for org LaTeX-preview

I successfully use org LaTeX-preview to have my formulas displayed as images in my org-mode documents. There is one problem I am facing, though: I need the LaTeX math font to be upright instead of ...
4
votes
2answers
29 views

How can I enable electric indentation for all modes except some?

I am trying to enable electric-indent-mode for all modes except fundamental-mode, where it is just annoying. In my init file, I have the following: (electric-indent-mode +1) (add-hook 'after-change-...
0
votes
0answers
8 views

How to auto run hide-ifdef-mode's hide-ifdefs command

I've been using hide-ifdef-mode with c-mode buffers for a while, but it is quite tedious to have to manually run hide-ifdefs (C-c @ h) every time a block of code containing preprocessors changes. Is ...
0
votes
1answer
25 views

How can I disable ***all*** VC/git awareness?

Even when I start Emacs without any initialization file, it is still aware of version control. (For example, if I visit a git-controlled file, the modeline will say something like "Git:some-...
0
votes
0answers
7 views

counsel-file-jump ignores higher directories

If I'm in a project and actively on a file in a subdirectory. Using counsel-file-jump doesn't let me search from root. Also typing ../ doesn't work either. Any ideas how to get it to use the ...
2
votes
1answer
42 views

How to disable momentary highlighting of a match by xref and ggtags?

When I call gtags-find-tag-dwim, matches item will be highlighted for about one second. When I call xref-pop-marker-stack, matches item will be highlighted for about 0.2 second. like this: -----------...
0
votes
1answer
50 views

Error enabling flyspell in emacs - aspell MacOS

I am having some difficulty getting flyspell/aspell to run on emacs 27.2, MacOS 12.01. I think I need to install or enable a dictionary, but no ideas on how to do this. If I type 'M-x flyspell-mode' I ...
0
votes
1answer
16 views

Start external process and communicate with it as soon as send messages

I use gnus configured to read mails from the davmail IMAP server. This one is used to read mails from outlook and translate them according to the IMAP protocol. When I start gnus, I configured emacs ...
0
votes
0answers
3 views

c sharp mode extra indentation of braces for functions located inside class

Emacs 26.3, Ubuntu Linux. In c sharp mode when a function is not inside class, the brackets are not indented: public static void Main(string[] args) { System.Console.WriteLine("Hello"); }...
0
votes
1answer
24 views

org-table, fetch a specific cell from all tables in a file

Summary of the problem Hey guys, I am currently keeping track of the stocks I buy and sell in org mode using tables. I have N different tables in a given file, each table representing a transaction. ...
0
votes
1answer
22 views

same files.el.gz, different auto-mode-alist

Two Debian systems with different history of apt-based and local software installations. On one system, cmake-mode works, on the other not, though file /usr/local/share/emacs/site-lisp/cmake-mode.el ...
1
vote
1answer
13 views

Trouble aliasing ctl-x-map, C-x 8 insert command?

I'm reading the beginning of the Emacs manual on inserting text. It says you can run C-x 8 [ to insert a left single curly quote. That works. In my init.el I have this: (define-key global-map [(...
0
votes
1answer
43 views
+500

How detect when lsp-mode has loaded a files references?

I'm running into an awkward bug with lsp-mode + clangd for batch editing files. When a source file is loaded, the symbols it points to aren't immediately available (using xref-find-definitions for ...
0
votes
0answers
10 views

Mimicking the action of `C-c C-n` in ess-R to work similarly in Python3

When one uses the ess ( emacs speaks statistics ) package written for R, C-c c, runs the whole buffer in the R interpreter in the other window. But, C-c C-n just runs one line which is sometimes ...
0
votes
0answers
20 views

How to fix auto-indentation of previous line when entering newline?

Suppose I have this indentation: with {:ok, _} <- Foo.bar(x, %{ baz: "foo" }),~ true <- 1 < 2 do # [...] end and ~ marks where's my cursor. If I then ...
3
votes
4answers
112 views

More simple approach to replace some text in many files?

Linux Mint 20.2 Emacs 27.1 Task: I has folder with MyProject with 5 subfolders. Total count of files in all this folders are about 500 files. I need I all files that content import org.apache.log4j....
-1
votes
1answer
21 views

How to compile makefile files for newbies

I just got cloned a piece of software and the download folder looks like this: What I am to do next to compile this piece of software? Thanks!
1
vote
1answer
40 views

making the frame title more informative

The frame title I can see in an emacs window on my computer running Windows 11 is "emacs@NEYMAN", where "Neyman" is the computer name. Is it possible to make the frame title more ...
0
votes
0answers
25 views

Changing the color of items in org-mode agenda (depending on keyword/tag)

I'm using a script to translate my calendars from ics to an org file, so that scheduled events appear in my agenda. An entry in the org file has the following format, with CALENDAR being an agenda ...
2
votes
0answers
24 views

How to save a Slime Debugger buffer into a file, preserving all its data?

I am using Common Lisp, SBCL, Emacs, and Slime. Often, an error will happen while programming. When an error occurs, Slime opens a Debugger buffer. Sometimes, I would like to save this debugger buffer ...
1
vote
1answer
41 views

Opening and reading a jupyter notebook file

I would like to be able to read a jupyter notebook without actually having a jupyter kernel, in Emacs. For instance, having a file example.ipynb, I would like to be able to open that file with Emacs, ...
0
votes
0answers
27 views

What replaces org-latex.el in org-mode version 9?

At work we're running an old version (7.8.1) of org-mode. In trying to upgrade things to version 9 (specifically 9.1.1), lots of things are breaking. One particular problem is that our site init ...
0
votes
0answers
34 views

İs there a way to revert to last hard save?

If I understand correctly M-x revert-buffer reverts to the last auto saved buffer, as explained here. I just lost a big file (it was garbled for some reason). I opened the auto back up file but it was ...
1
vote
0answers
17 views

diff-mode: how to highlight whitespace characters?

with emacs -Q, I can use whitespace-mode : But in diff-mode this is what I get: you can see the tabs/space/newlines aren't shown (highlighted). How can I make diff-mode highlight whitespace chars?
1
vote
1answer
22 views

How to provide my own ediff-make-wide-display-function for ediff

For Ediff's wide display feature I like to use my own ediff-make-wide-display function. Ediff has a variable for this: ediff-make-wide-display-function. However when I write: (defun my-ediff-make-wide-...
0
votes
0answers
20 views

Dired: open file in another frame, but reuse an already existing one

I use a two-screen setup, and I like to have a frame with dired on one screen and another frame on the second screen. When I want to work on a specific file, I usually copy the file path from dired ...
0
votes
1answer
40 views

Error /bin/bash: line 1: nil: command not found

I have the following code to auto format python code using autopep8: (defcustom python-autopep8-path (executable-find "autopep8") "autopep8 executable path." :group 'python :...
1
vote
1answer
30 views

Hanging interface in heavy processing scripts

Emacs org-babel is an excellent notebook tool for exploratory and interactive statistics in ESS. Now, I need to run very heavy scripts in R and the entire interface of emacs hungs for the duration of ...
0
votes
1answer
10 views

IntelliJ style comment block cannot be recognized

In java-mode, I find the IntelliJ style comment block /** ... */ cannot be recognized correctly. And I have checked that the value of comment-start-skip variable (inherit from c-mode) is set as "\...
0
votes
1answer
50 views

Dedicated python shells that runs the code

This answer how to map C-c ! to create a new python shell for the current buffer. The main code is this: (defun my-python-start-or-switch-repl (&optional msg) "Start and/or switch to the ...
0
votes
0answers
22 views

company mode: seamless scrolling for completion suggestions

How do I enable seamless scrolling for company-mode suggestions? To wit, I'd like to return to the top suggestion if I scroll down from the last, and go the the bottom if I scroll up from the first. I'...
4
votes
1answer
47 views

Is there a "switch to buffer" hook?

I'm running emacs 26.3. I want to run a hook every time I switch to a buffer. However, I have not been able to find any kind of "buffer switch hook". If I want to always run a function when ...

15 30 50 per page
1
2 3 4 5
454