All Questions

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

Changing word endings with a different letter

I want to change a word ending with ever with v by calling an elisp function. What can I do? That is "whenever" to "wnv" "whoever" to "hov" "however" ...
user avatar
  • 351
0 votes
0 answers
12 views

Completing long words but inserting shortened version

Company mode can help me with completing long words. But I also want to be able to write a shortened version of a word without requiring me to use any keybinding command after writing a word. For ...
user avatar
  • 351
0 votes
2 answers
32 views

Does enabling by default a custom input method have any side effect on the default method?

I added these to my init.el: (use-package org :ensure nil :hook (org-mode . (lambda () (org-indent-mode) (variable-pitch-mode -1) (...
user avatar
  • 101
0 votes
0 answers
9 views

Docstring explaining how to use interactive function with completing-read

I want to write a docstring that explains how completing-read works, but cannot find a good description on how one can move from one option to another.
user avatar
  • 351
0 votes
0 answers
5 views

How can I use 'transients' in 'magit' to enable case-insensitive search?

I got it working a year ago, then my machine died. I've been unable to figure out the interface to transient. When I view the levels (green and red, with numbers in them), I hit '-i' but see an error '...
user avatar
0 votes
0 answers
28 views

Org capture template with org-store-link

I would like to create an org-capture template such that when I select it with org-capture (which is mapped to C-c c for me), I want the capture template to ask me for the description and URL of a ...
user avatar
  • 101
0 votes
0 answers
18 views

How to open serial-port with root privileges

When I try to open /dev/ttyUSB0 with serial-term, following error shows: Opening serial port: Permission denied, /dev/ttyUSB0 I know I can add my user to a group that has access to /dev/tty*. ...
user avatar
  • 51
0 votes
1 answer
34 views

keep org-mode comments on export

I am drafting a document in org. Because I will have some coauthors, I will have to switch to LaTeX at some point. I am usually putting a very short description of the paragraph on top: # why do we ...
user avatar
  • 175
0 votes
1 answer
23 views

How to associate pdf file extension with pdf-tools?

I'm using GNU/Guix as my operating system and have had pdf-tools installed for several years. During that time whenever I opened a PDF file (e.g. by clicking on an org-mode link or selecting one with ...
user avatar
  • 3,477
0 votes
1 answer
31 views

Adding alternative for a face or face name

I am using this function interactively, where the string from completing-read is passed to intern to convert it into a symbol suitable for describe-face. Currently, I want to handle the non-...
user avatar
  • 351
0 votes
0 answers
9 views

Switching to and from shortened words with completion

Have been using abbrev to convert words to shortened versions. Whilst I can go from a full word to a shortened version, I cannot go the other way round, because of the punctuation limitation of ...
user avatar
  • 351
0 votes
1 answer
18 views

Left-aligning the title in org export to ASCII

When I export an Org document to text, the title (along with the decorative ASCII art above and below it) is centered. What's the best way to suppress the centering, and simply have it start at the ...
user avatar
0 votes
0 answers
22 views

Projectile alternative optimized for TRAMP?

I really enjoy Projectile but it continuously doesn't play nice with TRAMP. I was wondering if there were any Projectile alternatives out there. I tried searching the internet but all I get all ...
user avatar
0 votes
1 answer
15 views

How to run initialization commands with tramp?

I would like to run some commands on remote host before giving control to tramp. E.g., I would like to load easybuild modules to make sure that environment variables are set correctly for ESS. My ...
user avatar
0 votes
1 answer
32 views

Doom - setting code formatter for specific file type

How can I change formatter used for specific file type in doom-emacs format module? So far I've been happy with using mostly doom defaults and haven't gotten into writing custom configurations and ...
user avatar
0 votes
1 answer
18 views

Stop Emacs from reconnecting to SSH when working with a stale TRAMP buffer

After leaving Emacs open overnight, the SSH connection expires. However, the buffers that I left open, are still useful, and I want to continue working with them. However, any action I do with Emacs (...
user avatar
  • 101
1 vote
1 answer
49 views

Incremental search line highlight

When running incremental search by pressing C-s repeatedly (isearch-repeat-forward) is there a way to highlight, in addition to the matching string, the line where that string is found? I would like ...
user avatar
0 votes
0 answers
21 views

Passing face to function non-interactively

With the following function executed non-interactively, would it be sensible to pass the face name or a string? (defun laxy-descface (facenm) "Describe the typeface properties of face name ...
user avatar
  • 351
0 votes
0 answers
28 views

Faces to know about

Are there any specific faces one would normally find important to know about, besides the face after point? I am here referring to basic face names that one would generally like to print their ...
user avatar
  • 351
0 votes
0 answers
19 views

Only expand yasnippet in certain scope

I'm trying to create a snippet for cc-mode which should only expand if it's inside the scope of a function. Let me give an example: //shouldn't expand here struct test { //shouldn't expand here } ...
user avatar
-1 votes
0 answers
14 views

Displaying face attribute at point with (get-text-property (point) 'face)

I am doing the following to display the face attribute at point with (get-text-property (point) 'face) which is yielding problems. Perhaps because I am using 'face? (defun laxy-descface (face) &...
user avatar
  • 351
0 votes
0 answers
13 views

What does ("C-p" . previous-line) in term-bind-key-alist do?

I am using multi-term to manage multiple terminals. When I open a new term with M-x multi-term RET, the terminal is in char mode which is good. I execute a command in the terminal like this: echo ...
user avatar
  • 1
0 votes
1 answer
21 views

change starting buffer from *scratch* to recentf-open-files

I like the buffer that is opened when type M-x recentf-open-files. I'd love to have it as my starting buffer instead of scratch, but I don't know how. I've tried adding '(initial-buffer-choice '...
user avatar
  • 103
0 votes
1 answer
21 views

How to remove the visual vertical bars for Python files?

I am using Emacs 27.2 on a Mac OS with Steve Purcell's configuration. I have got some visual vertical bars for Python files. How can they be removed?
user avatar
  • 163
0 votes
2 answers
37 views

web-mode no syntax or color formatting with css and scss?

New user of vanilla Emacs 28.1 here, I just installed web-mode and it works great so far except for CSS and SASS / SCSS files. With those, web-mode doesn't provide any syntax highlighting or ...
user avatar
0 votes
1 answer
33 views

Calling describe-face at current point

With the following, how can I call the function interactively so that I can also call describe-face at current point? (defun laxy-descface (face) "Describe the typeface properties of FACE."...
user avatar
  • 351
0 votes
0 answers
26 views

Pass face to describe-face when using function interactively

How can I pass the face to describe-face when using the function interactively? (defun laxy-describe-face (face) "TODO" (interactive (list (let* ( (cseq '("mode-line-...
user avatar
  • 351
0 votes
1 answer
18 views

How to run code after custom-set-variables?

I like to set my color theme programmatically, on the basis of my current system color scheme, like so: (if (string-equal (gsettings-get "org.gnome.desktop.interface" "color-scheme"...
user avatar
  • 103
0 votes
1 answer
25 views

calc: fill multiple adjacent rows with a formula?

With Table>Set Field>Formula, I'm able to do what I want for a particular field, in this case that corresponding to Aug 07. How can I fill multiple adjacent fields in one go, say Aug 7-15? #+...
user avatar
  • 535
0 votes
0 answers
29 views

emacs 28.1: how to set xpdf executable in rst.el

I have been trying to produce .pdf from .rst for a long time now. Some of you have suggested that I install Docutils and xpdf to achieve this. But I still can't do it. I thought it might be a problem ...
user avatar
  • 101
0 votes
0 answers
18 views

Printing face attributes for mode-line and mode-line-inactive

How can I print the face attributes for mode-line and mode-line-inactive?
user avatar
  • 351
0 votes
1 answer
8 views

Change background colour of the mode line in window

How can I change the background colour of the mode line of a window when not in use?
user avatar
  • 351
0 votes
0 answers
21 views

Ubuntu 22 "your emacs does not come with xwidget support"

I'm a complete beginner, I'm using Doom Emacs and when trying to open a YouTube link in org-mode I get this error. I'm not sure what I should do to fix it. I tried to install libwebkit2gtk-4.0-dev but ...
user avatar
  • 1
0 votes
1 answer
23 views

abbrev-mode not being enabled with value 1

With the following function doing (protabbrev) does not enable abbrev-mode even though protabbrev-state is 1. What could be the reason? (defvar-local protabbrev-state nil) (defun protabbrev (&...
user avatar
  • 351
0 votes
3 answers
131 views

Faces become italic automatically

I'm trying to set default face to use PingFang Mono SC font. But I notice that faces that don't use this font become italic unexpectedly. As one can see below the font-lock-comment-face is italic, but ...
user avatar
0 votes
0 answers
7 views

Update line-number-current-line background when hl-line-mode toggled?

When hl-line-mode is enabled, the hl-line face controls the current line's background color, but the current line number's background is controlled by line-number-current-line regardless of whether hl-...
user avatar
  • 1,838
0 votes
0 answers
24 views

Get cursor to jump briefly to open paren when I type close paren

Emacs on my computer at work behaves in the following way: When I type a close paren, the cursor briefly jumps to the matching open paren. I like this behavior, but I can't get Emacs on my Mac at home ...
user avatar
0 votes
1 answer
23 views

How to do a "git fetch --all --tags" in Magit?

I would like to pull changes from an upstream repository. More specifically, I would like to pull all the tags that were introduced. On the terminal, I can do: $ git fetch --all --tags On Magit, ...
user avatar
0 votes
0 answers
19 views

Can I add content in an org file that is under a heading that isn't part of that heading

Is there a way to add content below a heading, but signal to orgmode that the content should be at the root scope and not under that heading? Basically something like this: This is something at the ...
user avatar
0 votes
1 answer
34 views

Why does the %m construct does not work for emacs-lisp-mode?

I have the following modeline configuration : (setq-default mode-line-format '((:eval (me/simple-mode-line-render ;; Left. (quote (" " mode-line-mule-...
user avatar
0 votes
0 answers
16 views

When using company and lsp, why does the placeholder text sometimes not get replaced?

In a buffer in c-mode with the following content (with point after retu), pressing enter completes to return expression;. int main(int argc, char** argv) { retu } Point is now at the beginning of ...
user avatar
  • 143
0 votes
1 answer
24 views

Anomalous Self-Insert Behavior

I submitted a bug report about this behavior about a year ago on bug-gnu-emacs, but I got no useful responses and the behavior has gotten worse over time. Perhaps someone here has an explanation or ...
user avatar
2 votes
1 answer
61 views

Use echo area to show which faces are applied to text at point?

When writing a color theme, it would be helpful if the echo area showed which faces are applied to the text at point. I know I could use C-u C-x = to call what-cursor-position, but that requires ...
user avatar
  • 1,838
0 votes
0 answers
11 views

Extraction of reference and pdf from elfeed-entry

My elfeed is focused on finding papers and when I check out each entry, there is a PMID and DOI number at the end. PMID:39334129 | DOI:10.1207/s12102-021-03242-8 I wanted to call a function that ...
user avatar
0 votes
1 answer
31 views

Why I can't type things such as "?" and "/" in Emacs with my macOS running Brazilian Portuguese input but they do work outside of Emacs?

I have been using Emacs in a NixOS (Linux) machine running GNOME as a Desktop Environment. The hardware interface of this system is an American keyboard. Since I am Brazilian, it was necessary for me ...
user avatar
0 votes
0 answers
22 views

cannot 'squash' without a previous commit

Emacs 27.1 Magit I want to squash some my commits. Here steps: 1. magit-status (C-M-s) 2. l (little L) 3. l (log current) 4. In the commit history, put the cursor on the oldest of ...
user avatar
  • 3,445
0 votes
0 answers
19 views

Extracting numbers from elfeed entry buffer

When I am in a particular elfeed entry buffer, I want to call a function that records the article in my .bib file by extracting the following PMID and DOI numbers from my elfeed-entry buffer: PMID:...
user avatar
1 vote
1 answer
32 views

How to NOT connect to daemon?

When invoking emacs, is there a way to specify that it should not connect to any emacs daemon, but instead should run as an isolated instance?
user avatar
  • 1,838
0 votes
2 answers
75 views

How to write a function that handles its argument

I would like to implement a sensible strategy for handling optional arguments. In this instance, I want the function to be as for a function like abbrev-mode (although not in the context of a minor ...
user avatar
  • 351
0 votes
0 answers
11 views

Unable to setup dap for go

I am trying to setup the new dap plugin for Go in emacs, but I am unable to. This is documentation that i am following: https://emacs-lsp.github.io/dap-mode/page/configuration/#go This is my ...
user avatar
  • 111

15 30 50 per page