All Questions

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

Make Evil Mode “s” key behave like Vim

Doom Emacs' s key does not behave like Vim's implementation. In Vim, s deletes the character under the cursor and puts you into insert mode whereas Evil Mode performs a search, similar to f and t. Is ...
0
votes
0answers
8 views

Override the default font for emoji characters

My fonts setup is (setq default-frame-alist '((font . "DejaVu Sans Mono-10"))) (defun my-emoji-fonts () (set-fontset-font t 'symbol "Twemoji") (set-fontset-font t 'symbol &...
0
votes
1answer
17 views

How to get “:size” from font-spec

How can I get :size from font-spec using Elisp?
0
votes
0answers
9 views

Define new keywords in orgmode

I am trying to define new keywords for org-mode in order to highlight text in buffer. I followed this tutorial and this one which leads me to the following code : (defface ex-face '((t (:foreground &...
0
votes
1answer
11 views

Can't use eval-replace-last-sexp in multiple-cursors

In scratch file I has: (* 60 10) (* 50 100) (* 50 200) I want to use my custom function replace-last-sexp (C-c C-l) (defun replace-last-sexp () (interactive) (let ((value (eval (preceding-sexp)))) ...
0
votes
1answer
12 views

is there a shortcut to re-type the original filename and then edit it, when at the dired copy (C) minibuffer prompt

While in a dired buffer, after pressing C to copy a file, often the new filename you want is actually a variation of the original file name. Is there a easy way to get original file name in to the ...
1
vote
0answers
12 views

Installing quelpa-use-package from use-package

Currently I have the following init file to install and use use-package: ;; Package.el (require 'package) (package-initialize) (setq package-enable-at-startup nil) (add-to-list 'package-archives '(&...
0
votes
1answer
17 views

What are the yellow-background items in Ivy?

I'm currently migrating from Helm to ivy+counsel, and I have a problem with the faces ivy applies in the minibuffer for some commands. See this example: Some of the possible selections are ...
0
votes
0answers
22 views

Blank menus with Athena / Lucid

I compiled Emacs 27.1 with --with-x-toolkit=lucid, now the menus are blank. I tried setting the colors in ~/.Xresources: Emacs.pane.menubar.background: black Emacs.pane.menubar.foreground: white Emacs....
0
votes
0answers
7 views

File mode specification error: (void-variable lsp-csharp--action-client-find-references)

I'm using doom emacs. my ~/.doom.d/config.el is - (use-package! lsp-mode :hook (haskell-mode . lsp) :commands lsp) (use-package! lsp-ui :commands lsp-ui-mode) (use-package! lsp-haskell :after ...
1
vote
1answer
21 views

Prevent dired recenter buffer when reverting buffer

When a directory contains many files, more than the visible lines of the window, use end-of-buffer to go to end of buffer, then press g to revert-buffer, one can see the last line is recentered to the ...
0
votes
0answers
12 views

org mode evaluate code blocks up to the current cursor?

Is there a way to execute all code blocks in an org file up to the current cursor point? I know that there is C-c C-v C-b for evaluating all code blocks. But often times, I'd like to resume from a ...
0
votes
1answer
27 views

How to get the real line number of a selection?

I am trying to figure out the line numbers referring to the actual selection. What I came up with is something like this (let ((start (line-number-at-pos (region-beginning))) (end (line-number-...
0
votes
1answer
15 views

shell-mode `alias` keyword is not recognized as font-lock-builtin-face type

In shell-mode; alias keyword is not recognized as font-lock-builtin-face type and remain as white color (with the current theme I am using it should be in different color) => Is it possible to add ...
0
votes
1answer
28 views

Why can't I type a dollar sign in this latex equation?

Consider the following latex document. \documentclass{article} \usepackage{tikz} \begin{document} Consider the following picture. \[ \begin{tikzpicture} \node (X) {X}; % this X should be ...
1
vote
0answers
16 views

Closing emacs with (desktop-save-mode 1) results in “Current desktop was not loaded from a file” even after setting variables

I have set the following things in my .el file (not init.el): (setq desktop-dirname "~/.emacs.d/desktop/" desktop-base-file-name "emacs.desktop" desktop-base-lock-...
0
votes
1answer
26 views

command run in docker-tramp running on the host rather than remote

The setup: I have a docker container connected with a mounted volume containing an org file. The docker container has both texlive and emacs (configured exactly the way it is on my host) installed. I ...
1
vote
1answer
48 views

Log Tramp traces to a file

I am experiencing some Emacs Tramp connection problems and want to ask for help. However in my case Emacs hangs completely because of Tramp and there is no way I can access Tramp debug files. (it is ...
0
votes
0answers
22 views

Function to toggle between two modelines

I'm using a modeline at the top, and have defined the default-modeline as a dash-modeline. (see Nano-Emacs) But as this modeline still kinda of beta, sometimes is good to have the old mode-line to ...
1
vote
1answer
12 views

How to update emacs on MS Windows?

I have installed emacs 2-3 years ago. The version I'm using now is 25.2.1. I want to update it to the latest version, which is 27.1. I uninstalled it and then installed again to no avail, it is the ...
0
votes
1answer
41 views

Pasting images into Org

I'd like to paste images from the system clipboard into an Org file. Emacs should write the clipboard content to a suitable file (likely an attachment) and insert a suitable link (see https://orgmode....
0
votes
0answers
24 views

emacs opens py file as sh file

Emacs has opened a py file as a shell script. What went wrong and how to change?
0
votes
1answer
24 views

How can we get input using emacs?

In order to compile my lua code i use this config (defun lua-main-compile () "use lua to compile my lua code" (interactive) (compile "lua main.lua")) In my lua code when i type x =...
0
votes
1answer
18 views

org verse blocks: indentation not preserved on export to odt

the org manual says "To preserve the line breaks, indentation and blank lines in a region, but otherwise use normal formatting" you can use #+begin_verse #+end_verse block. if i run emacs -Q,...
0
votes
1answer
90 views

Deleteing remote branches

I want to delete a remote branch. How can I do git push origin --delete my-branch in magit, to delete a remote branch?
0
votes
0answers
18 views

How do I fix “incomprehensible buffer” error when running list-packages?

When running list-packages in emacs on an up-to-date Debian Buster (10.6) I get the following error: error in process sentinel: Error retrieving: https://stable.melpa.org/packages/archive-contents &...
0
votes
0answers
4 views

Can't run command using C-. keybinding with Evil

I'm trying to use racket-mode for programming Racket. One of the racket-mode commands is bound to C-c C-. (control c, control period). However, whenever I try to press C-c C-., it appears to get ...
0
votes
0answers
7 views

Cannot capture notes into separate org file when entering reference into Bibtex with ivy

I am using emacs 27.1-4.1 with Spacemacs v.o.200.13 Ivy and vims. I am relatively new to emacs and am expanding into bibtex with ivy-bibtex. in my .spacemacs file is: (autoload 'ivy-bibtex "ivy-...
0
votes
1answer
28 views

How can I sort Org headings by value in :properties:

My org file structure is this: * Heading 1 :PROPERTIES: :EVENT_CREATED: [2016-11-28] :END: * Heading 2 :PROPERTIES: :EVENT_CREATED: [2016-10-27] :END: * Heading 3 :PROPERTIES: :EVENT_CREATED: [2019-02-...
0
votes
1answer
30 views

How can I prevent empty files from showing up on the Ibuffer list?

On my IBuffer I always see a *.py file that is actually empty. Is it possible to prevent this file to be hidden in the Ibuffer or basically remove it. [ Default ] *.py 0 ...
0
votes
1answer
6 views

error in process filter: No email account found

I use Emacs 27.1 (9.0) and mu4e 1.4.13 with multiple email accounts, and those email accounts have one main username and multiple aliases. Recently I started getting this error when replying to an ...
0
votes
1answer
37 views

Leave evil's insert state with Control + c

I would like to be able to leave the insert state (I think that's what it's called in emacs?) using the Ctrl+c combination I know from vim. I'm using doom-emacs in case that's important, and I'm ...
0
votes
0answers
19 views

Org export to odt incorrectly use “DEADLINE” for “SCHEDULED”

I noticed that when org-exporting to and odt file, the SCHEDULED timestamps are changed to DEADLINE instead. A minimum working org file: #+TITLE: Test file #+OPTIONS: p:t * Section 1 ** TODO Section ...
0
votes
0answers
10 views

interactive-haskell-mode: Format specifier doesn't match argument type

Pressing C-c C-l (for a simple "Hello, world!" script) in interactive-haskell-mode gives me the error message Format specifier doesn't match argument type whereas I would have expected the ...
0
votes
0answers
14 views

I have auto-fill mode enabled for text documents, how do I automate fill-region when rewriting?

I have auto-fill mode enabled for text files, and when I edit text I often have to run fill-region within the selected area to make it look nice again. Is there a way to automate this, or to make ...
0
votes
0answers
21 views

Stop indenting second blank line after end of the list

I try to configure org mode in the way that it doesn't indent second blank line after last item of the list. Is there a way to achieve this? Example: - All of the words in Lorem Ipsum have flirted ...
0
votes
0answers
9 views

xref-find-references: Exclude mentions in comments?

xref-find-references finds all references to the searched symbols. In many cases I find the results to be heavily cluttered with mentions of the symbol only in a comment. Is there any way to tell xref-...
1
vote
0answers
22 views

Navigating to a `defconst` variable defined by a Lisp macro

My goal is to define a const variable within a non-trivial macro that can be navigated to after calling describe-variable. The design goal of my macro works just fine if I define it like so: (...
0
votes
1answer
23 views

Add note to clock entry when moving item to DONE

For my Org buffer, I configured #+STARTUP: lognoteclock-out for adding notes to my logbook entries when clocking out, which basically works fine. However, when the clock is stopped due to the item ...
0
votes
0answers
32 views

How to org-refile-targets to an file+olp+datetree?

I have an org-capture that writes a timestamp (setq org-capture-templates `(("a" "Agenda" entry (file+olp+datetree "agenda.org" "Calendar Agenda") ,(...
1
vote
1answer
28 views

Saving filter list for Bookmark+ package

I've recently started using the BookmarkPlus package and I've been loving it. However there is one thing that I can't seem to figure out. I want, from my big list of bookmarks, to create a set of ...
1
vote
1answer
21 views

Make customize save lists newline separated

When saving changes using customize Emacs serializes lists space separated. This makes for example the package-selected-packages variable extremely long and hard to scan over. Is it possible to make ...
0
votes
1answer
27 views

Alternative to `read-number' that does not truncate floating point zeros

The function read-number truncates floating point zeros; e.g., (read-number "PROMPT: ") RET 100.00 => 100.0 I am seeking a similar alternative to read-number that will not truncate; e.g.,...
0
votes
0answers
13 views

How to get asm file highlighting to be to be similar to vi?

Here I have a random (invalid, but shows the important syntax highlighting) asm file as in Vim: Emacs seems to be highlighing incorrectly (? there are many flavours of asm but I've never seen ...
0
votes
1answer
12 views

What is Interlocking about?

Recently I "fixed" issue with locking when I access LXSS backed P9 network FS mounted in Cygwin by: (setq create-lockfiles nil) I read (info "(emacs.info) Interlocking") but still ...
1
vote
1answer
40 views

Understanding emacs keys

I'm vim user and I've just started using emacs with evil. But one thing I'm finding really hard to understand is when do we use <C-x>, <M-x> etc. I want to understand when to use Control ...
0
votes
0answers
4 views

Can counsel-git-grep for string search keep the history of previous searches?

In general when I run M-x and do control-p or control-n or (M-p) (M-n) I can move around the previous inputs that I provided in the past. Is it possible to achieve it in counsel-git-grep ? I am using ...
0
votes
1answer
23 views

Mode-line always shows [Compiling] after compile a tex file with typos

For some special tex with typos, mode-line always shows [Compiling] even if we correct all typos. To reproduce First compile the following correct tex by C-c C-a \documentclass{article} \usepackage{...
6
votes
1answer
96 views

dnd-unescape-uri is undefined

After updating packages from MELPA, I'm getting the message: Warning (emacs): dnd-unescape-uri is undefined. Some things may not work. It is a separate buffer. Not in the messages buffer. I can just ...
0
votes
1answer
28 views

org export with interleaved output

I have an Org mode file with the following source block in it: #+begin_src sh :exports both echo "first line" echo "second line" #+end_src #+RESULTS: | first | line | | second | ...

15 30 50 per page
1
2 3 4 5
409