All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
23 views

Setting abbrev-mode variables before enabling abbrev-mode

Have done some tests with abbrev-mode variables. I can set global-abbrev-table even when abbrev-mode has not been enabled yet with a hook or with (abbrev-mode 1). How does this happen?
user avatar
  • 351
0 votes
0 answers
7 views

Control another process on Windows, perhaps with named pipes

I would like to control an external player with Emacs under Windows. Because I'd like a bit of background music, I would avoid bloated libraries. I saw, for example, that mpv can use IPC calls. In a ...
user avatar
  • 1,638
0 votes
0 answers
24 views

Making words occurring in a specific file available to company-mode

I am using company-mode with (setq company-dabbrev-other-buffers 'all). Although this should search other buffers, I want that the words occurring in a particular files are made available for company-...
user avatar
  • 351
0 votes
0 answers
19 views

Enable and disable abbrev-mode

I am using abbrev-mode to perform the reverse process, writing a perfectly written word, and an abbreviation gets inserted instead. I want a quick way to disable the replacement when I want to. ...
user avatar
  • 351
0 votes
0 answers
35 views

How to open PDF file with Org-ref?

I have been trying to use the org-ref package with emacs and I copied the setup presented in the package where I placed the .bib files in a directory called ~/papers/ along with any pdfs of the papers ...
user avatar
0 votes
0 answers
10 views

Completion of word or abbreviation

I would like a drop-down menu similar to company-mode to complete words, but then insert either the word completion or the abbreviation associated with it. I take example from the following ...
user avatar
  • 351
0 votes
0 answers
17 views

format a region of text file with cc mode

I have a textfile.txt with content like the following *decltype with two or more arguments decltype does not take two arguments. Simply it can have an expression as its argument, and the comma ...
user avatar
0 votes
1 answer
63 views

Don't replace " in LaTeX Mode

In LaTeX mode, when I type \" (to produce a Umlaut like ö, ä or ü in the resulting PDF) emacs replaces it by ''\` (two single quotation marks, a backslash, and a backtick) which does not work for ...
user avatar
  • 113
0 votes
1 answer
14 views

Looping defconst to fill global-abbrev-table

I have about 30 defconsts for abbrevs and want to loop them to fill global-abbrev-table. (defconst tablet1 '( ("all" "l") ("as" "as") ("can&...
user avatar
  • 351
0 votes
1 answer
24 views

Add multiple lists to global-abbrev-table

How can I add multiple lists to global-abbrev-table? (defconst tablet1 '( ("all" "l") ("as" "as") ("can" "k") ("some&...
user avatar
  • 351
0 votes
0 answers
17 views

Magit: Show diff full screen when selecting a commit in log

In Magit, when I hit SPC or RET, the diff is shown in the bottom half screen. My screen is too small and this half window does not contain enough context. I would prefer to hit RET, have the diff in ...
user avatar
  • 191
0 votes
0 answers
26 views

Enabling and disabling abbrev globally and by major-mode

Have noticed that abbrev-mode only works for the current buffer. Thus using the following configuration does not enable abbrev-mode when I load an org-mode file. (require 'toro) (toro-abbrev) Here ...
user avatar
  • 351
0 votes
1 answer
10 views

(abbrev-mode 1) not enabling automatic abbreviation

I have an elisp file named toro.el that I want to call in my init file (defconst tablet2 '( ("is" "s") ("it" "t") ("know" "no"...
user avatar
  • 351
0 votes
2 answers
75 views

rst2pdf installed how can I obtain a .pdf from .rst file?

as I already told I've installed rst2pdf docutil, but if I run M-x rst-compile-pdf-preview I get a quick message saying that Ive to use C-c C-c C-p but, entering that, I obtain You can run the ...
user avatar
  • 101
0 votes
0 answers
5 views

Where else besides evil-ex-history are evil search and replace commands stored?

I want to get the search strings run in the mini-buffer by the evil-search system. I found a variable called evil-ex-history and here is a sample of #("%s/buffer/file/g" 0 1 (ex-index 1) 1 2 ...
user avatar
  • 1,171
0 votes
0 answers
30 views

How to find why my keys have been rebound?

Trying to run a new version of emacs, installed on a server that I do not have root privileges on. The tutoral (C-h t) reports that keybindings, including C-v, have been re-bound. Is there a way of ...
user avatar
0 votes
0 answers
14 views

How to force a particular compiled verilog-mode.elc file to be used?

I'm using emacs on a server with no root access and paranoid sysadmins. The verilog-mode in the default path is very, very old and does not work well. However, there is a later version of verilog-mode....
user avatar
0 votes
1 answer
44 views

When to set configuration variables for company-mode

I have a function that calls global-company-mode with argument 1 (enable) or -1 (disable). A user can enable and disable however many times he wants. Do I have to set the configuration variables for ...
user avatar
  • 351
0 votes
1 answer
18 views

Passing numeric value to a function

I have got the following function but want to pass a numeric mode even if completing-read asks for a string. (defun mycompany (mode) "Enables or disables company text completion in buffer."...
user avatar
  • 351
0 votes
0 answers
26 views

Enabling and disabling global-company-mode without hook

I want to be able to enable and disable global-company-mode by calling elisp functions in my init file. Could I use (global-company-mode 1) to enable and (global-company-mode -1) to disable Does this ...
user avatar
  • 351
0 votes
0 answers
17 views

image-file-name-regexp: Wrong type argument: characterp

I wanted to mark certain filenames as images and added this to my config.el: (add-to-list 'image-file-name-regexps "/preview/") But when I run org-toggle-inline-images now, I get the ...
user avatar
  • 224
0 votes
0 answers
25 views

Repeat mode doesn't repeat, how to debug?

repeat-mode is completely failing to operate as advertised. I get the message saying it's enabled, and thereafter Emacs carries on exactly as if it has not been enabled, with supposed command-...
user avatar
  • 1,356
0 votes
2 answers
37 views

how to compile .rst in .pdf

I've obtained a .html from an .rst file M-x rst compile Compile command: rst2html.py README.rst README.html (this is the message I obtain from emacs) How can I compile in .pdf? Renato
user avatar
  • 101
0 votes
1 answer
26 views

How can I run auto-fill before each save in the complete buffer?

When I have a line greater than 80 columns and press enter at the end of the line it breaks the line. So in order to break the line I had to go to end of the long line and press enter. Instead could ...
user avatar
  • 1,078
0 votes
0 answers
18 views

Re-set timestampt font in org-mode

I've updated Ubuntu to 22.04 and now the font used for time stamps in org-mode is bigger than other fonts (headlines, text, tags, etc.). This is making the file look very awkward and it's difficult to ...
user avatar
0 votes
1 answer
20 views

Enabling company-mode with variable setup

I want to enable and disable company-mode. Would I have to reset setup variables, everytime I want to enable company-mode? Should I call company-setup before calling company-enable. Is the ...
user avatar
  • 351
0 votes
1 answer
33 views

How to use fonts for normal text for org-mode tables?

Since the Emacs version upgrade to version 28 org-mode tables have become very small in size. Their font size has been reduced. Is there a way to tell Emacs to use the default font for the tables? ...
user avatar
  • 13
0 votes
1 answer
23 views

Why Emacs Eshell and macOS default terminal are showing different results for the same query on a program version?

I am using Emacs (config file) on macOS Monterey (12.5). There is something that I do not understand. After being queried on a specific version of the program called sdkman sdk, eshell and macOS ...
user avatar
0 votes
1 answer
25 views

Customise org babel block color

Customise org-babel source block color such that: when the block is folded, the #+begin_src line is the default color when the block is open, the #+begin_src and #+end_src lines are highlighted a ...
user avatar
0 votes
1 answer
25 views

flex and initials with completion-styles

I am using completion-styles and cannot decipher the difference between flex and initials.
user avatar
  • 351
0 votes
0 answers
28 views

What is the priority of the `library of babel' code blocks versus the named code blocks locally in `org-babel-expand-noweb-references'?

When tangling my literate files, code blocks from the library of babel, added using org-babel-lob-ingest, are overriding local named code blocks. I'd thought it's supposed to be the other way around. ...
user avatar
0 votes
1 answer
27 views

try to compile .rst text:Compilation exited abnormally with code 2

I'm trying emacs to create a simple .rst mode. I tyoe M-x rst-mode then I wrote a simple code then type M-x compile (proposed 'make -k') I obtain this message and it doesn't compile -- mode: ...
user avatar
  • 101
0 votes
1 answer
21 views

How can I turn off apheleia-mode for Latex-mode?

I am using apheleia for buffer formatting. I want to disable apheleia-mode for the Latex-mode. I have tried following solution but it did not help. (defun jpk/org-mode-hook () (company-mode -1)) (...
user avatar
  • 1,078
0 votes
0 answers
29 views

Auctex preview does not adjust line color of fractions

I am using auctex to preview latex fragments (in the normal latex mode as well as in org-mode using texfrag). I am using a dark theme, so I rely on auctex to convert the foreground color from black to ...
user avatar
  • 1
1 vote
1 answer
26 views

Unexpected dabbrev-expand forward completion behavior

Given a buffer containing a abc with point immediately following the first a, ↓ a abc if I perform forward completion with (dabbrev-expand -1), it produces the result I would expect: ↓ abc abc ...
user avatar
  • 1,838
0 votes
1 answer
24 views

After package installation, why Emacs kept retrieving an error message on "Creating directory: Operation not supported" subsequent to normal behavior?

I was using this init file on a NixOS machine. It is important to note that parts of the file were written with use-package and other parts were a legacy from the classic imperative installation of ...
user avatar
2 votes
1 answer
74 views

emacs org mode: How to select multiple tags from dynamically generated tag list

If I have some tags already assigned to headlines and press C-c C-c Tab then org mode presents me with a dynamic list of all tags that are used in the file, eg: Click on a completion to select it. ...
user avatar
  • 103
2 votes
1 answer
96 views

Is it possible to wrap a small package not listed on MELPA/ELPA via use-package? How to do it?

I like this Emacs package called Emacs Centered Point link. I must highlight that it is not listed on MELPA/ELPA. Until now, I have just appended the snippet to my init file with the following and it ...
user avatar
0 votes
0 answers
12 views

How to change this slime configuration on the init file from the classic imperative installation to a declarative approach via use-package?

When I first installed Slime, I used to install things via the classic M-x and package-install. Then, I inserted the following configuration: (slime-setup '(slime-fancy slime-asdf slime-indentation ...
user avatar
0 votes
1 answer
29 views

How to change this wrap-region configuration on the init file from the classic imperative installation to a declarative approach via use-package?

When I first installed wrap-region, I used to install things via the classic M-x and package-install. Then, I inserted the following configuration: ;; Emacs minor mode to wrap region with tag or ...
user avatar
0 votes
0 answers
18 views

How to change this Paredit configuration on the init file from the classic imperative installation to a declarative approach via use-package?

When I first installed Paredit, I used to install things via the classic M-x and package-install. Then, I inserted the following configuration: (autoload 'enable-paredit-mode "paredit" "...
user avatar
0 votes
1 answer
32 views

How to display commit signature information in Magit Rev mode when visiting a commit?

Magit displays signature information in the magit-revision buffer when visiting a tag, but I can't seem to configure this behaviour when visiting a commit using the default bindings for magit-visit-...
user avatar
  • 221
0 votes
1 answer
24 views

Redirect change made to a variable to another variable

I have variables foo and bar. I have a function that modifies foo and I can't change that function. How can I redirect the change made to foo so it applies to bar instead? EDIT : I want this ...
user avatar
  • 3
0 votes
0 answers
64 views

Emacs moves curly braces -- how to stop

I have the "bsd" style selected for C++ programming but when I go to define a function and enter the curly braces on the new line this happens: Press RET Is there any way to stop this ...
user avatar
0 votes
0 answers
32 views

Automatic abbrev expansion as you type?

Is C-x ' the only way that abbrev expansion is invoked, or is there a way to expand abbrevs automatically, as you type, a bit like company-mode does.
user avatar
  • 351
0 votes
0 answers
49 views

AUCTex in WSL cannot find TeX Live in Win

When trying to compile/ pdf-preview a tex-file, minibuffer spits out: ERROR: AUCTeX cannot find a working TeX distribution. Make sure you have one and that TeX binaries are in PATH environment ...
user avatar
0 votes
0 answers
61 views

the best way to learn emacs

I'm dealing with learning emacs from a while, but I've still not find a god solution. I find the docs on the web site not well structured. There for sure I can find any explication of all command, but ...
user avatar
  • 101
2 votes
0 answers
22 views

Global list of TODO items of type: DONE sort by date

After 'List of all TODO entries' command I like to see only DONE task so I press in ex. (e.g. ‘8 r’). But I would expect that tasks should be sorted by CLOSED date. But they are not. I was trying with ...
user avatar
  • 389
-1 votes
0 answers
24 views

add function to prefix key

I hope I can run a function after tpye "C-c" or "C-x" ,and that still work as a prefix key. but there was not a hook for user ,
user avatar
0 votes
1 answer
35 views

How to load previously saved EMMS playlists?

I've been following the instructions on how to setup EMMS from both this MakeTechEasier article and the respective GNU Wiki page, and I have successfully set up EMMS so that it can create playlists, ...
user avatar

15 30 50 per page