All Questions

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

How to ignore files starting with `flycheck_` on `find-name-dired`?

During my search I keep having an error as follows: Search failed with status 1: find: ‘/home/user/folder/flycheck_Driver.py’: No such file or directory [Q] Is there any way to ignore files as ...
1
vote
1answer
44 views

Altering syntax highlighting for a particular expression

In c-mode, I would like all lines beginning with exec sql to have that expression grey and the rest of the line in the default face. How might I achieve that?
0
votes
2answers
64 views

Easily open PDF attachments from gnus with pdf-tools?

I seem to remember that I used to be able to press RET on a PDF attachment button in a Gnus article and have it open with pdf-tools. It's not working now, when I press RET I get prompted to save the ...
0
votes
1answer
78 views

Working Around the OS X Catalina Conflict with Emacs 26.3

I'm struggling to workaround the problem discussed in this post. I'm working through the accepted solution (which also references this post, and getting what I think is close, but not quite there. The ...
1
vote
0answers
29 views

org-download-screenshot from pdf-tools with renaming according to pdf name and pdf page

I would like to use org-download-screenshot (or some other function) in combination with pdf-tools. This works quite well out of the box. What I am missing is a enhanced renaming of the screenshot. ...
0
votes
0answers
15 views

imaxima: no LaTeX output and crash

I want to setup the imaxima buffer with working LaTeX output. Following the EmacsWiki, I added this to my init: (add-to-list 'load-path "/usr/share/emacs/site-lisp/") (autoload 'maxima-mode &...
0
votes
1answer
26 views

Trying to install org-ref package, but getting error 'emacs-25.1' unavailable

I am trying to install org-ref package but getting error package-compute-transaction: Package 'emacs-25.1' is unavailable. I searched Stack overflow, Stack Exchange Emacs, and github. I've found ...
0
votes
1answer
21 views

Magit error on magit-remote-add

On windows 7 version of spacemacs, with git layer, magit fails when trying to add a remote repository. After I enter the remote name, I get the following error: Debugger entered--Lisp error: (wrong-...
0
votes
1answer
33 views

How to enable paredit mode on all clojure, clojurescript and elisp buffers automatically?

I want to enable paredit-mode on all clojure, cljs and elisp buffers by default, which is probably going to happen through the .spacemacs file. This is what I have so far in the user-config function ...
8
votes
2answers
2k views

How can I use helm with org-refile?

I'd like use org-refile and select the heading with helm with an interface like helm-org-in-buffer-headings. I know I can use helm-org-in-buffer-headings to do this using f2, but is there a way to ...
2
votes
2answers
115 views

tsun in inferior term prompts each character of input

I came across a problem when I run tsun in an inferior ansi-term (or term, eshell) buffer of emacs(24.4.1) in Debian 8.5. The tsun REPL echos every character while I input as shown in the following ...
0
votes
2answers
41 views

How to get kill-buffer-hook to detach a screen session prior to kill-buffer?

I keep many screen session running in the backgroud, which I access with M-x eshell-command "screen -r <myscreen>". Before I kill the *screen* buffer, I have to detach the session with C-a d. ...
0
votes
1answer
32 views

How to stage selected lines / hunks in diff-mode?

Is it possible to stage changes in diff-mode? Or is this only possible with magit+ediff?
0
votes
1answer
44 views

Can you render the latex math expressions in the following file successfully: http://github.com/Anton-Latukha/haskell-notes/README.org?

Can you render http://github.com/Anton-Latukha/haskell-notes/README.org using M-x org-latex-preview on the inline math expressions using Org version > 9.0 default settings? For me, I get a weird ...
0
votes
0answers
14 views

monitor commands from gud/gdb command line not showing output

In a plain terminal, I can run gdb, connect to gdb server via 'target remote :nnnn` and then use the 'monitor' command to send commands to the remote app, and the results from running those commands ...
0
votes
1answer
19 views

org-preview-latex rendering weirdness when a space after initial inline expression delimiter

\(S\) renders fine. No problem here. $S$ renders fine. No problem here. $ S $ does nothing. I wouldn't expect this. Comment below referencing manual explains this case. $S $ does nothing. I wouldn't ...
0
votes
0answers
13 views

virtualenv selection menu shows only the first few virtualenvs

I have a number of virtualenvs, currently 40, but when I try to select one via the drop-down menu in emacs, it shows only the first 30 or so. Is there a way to get a scrollbar attached to that menu, ...
2
votes
1answer
69 views

How can I see what Major and Minor modes I'm currently in?

Is there an easy way to see what modes are currently operating in a buffer? And have a list of their names?
0
votes
2answers
211 views

EMMS + Mplayer: stop cover showing up when playing music

I've been using EMMS with mplayer for a couple days, and a minimal config: (setq exec-path (append exec-path '("/usr/local/bin"))) (require 'emms-setup) (require 'emms-player-mplayer) ; load ...
-1
votes
1answer
371 views

Cannot enable visual line mode globally

I would like visual-line-mode to be always on. For this reason I put in the very end of my init.el file the following line of code (global-visual-line-mode 1) (as suggested here). Anyway, the above ...
0
votes
1answer
25 views

Execute source block without output

I use the package ryo-modal-mode and for the key assignment I have long code blocks in an org-file. If I execute the code block I get a very long table under #+RESULTS. Is it possible to execute a ...
0
votes
1answer
48 views

Spacemacs move cursor using word wrap, not line breaks

I would like to be able to move the cursor around using the visual buffer, but I don't want to add line breaks to the source file. I'm not sure a better way to describe it, so I got some gif examples. ...
0
votes
1answer
21 views

Custom link abbreviations in properties treated as headlines

I have an agenda file with todo tasks where each task (and its subtasks) have an associated workspace folder or file, somewhere I actually do the work. To keep things organized I want this to be an ...
3
votes
1answer
69 views

Assign a function with universal argument to a key (org-timer-start)

I would like to assing the function org-timer-start with a univeral argument (Ctrl-u) to its own key. I read here, that one should look into the source code of a function to find out how to pass a ...
0
votes
0answers
42 views

Emacs -nw prints Turkish characters incorrectly

I use Emacs 25.2.1 on a Windows XP Laptop with a Turkish keyboard. Problem I get some non-ascii letters which are also found in German keyboards such as 'ö' and 'ü' and some letters which are also ...
0
votes
0answers
20 views

How to use exuberant ctags with python?

I followed instructions here: https://github.com/leoliu/ggtags I've enabled the following: (add-hook 'c-mode-common-hook (lambda () (when (derived-mode-p 'c-mode 'c++-mode '...
1
vote
1answer
53 views

Org-mode verbatim tilde (=~=) is still processed by Latex back-end

I have some verbatim text containing a tilde, =some ~ text=. Now, org-mode is supposed to leave the tilde alone. However, upon exporting with the latex backend, I get the following in my .tex: \texttt{...
0
votes
0answers
11 views

Insert byte without overwrite in Hexl mode

The funtion hexl-insert-hex-char in Hexl mode only allows you to replace a byte. How can I insert a new byte between two existing bytes?
0
votes
1answer
20 views

Spacemacs crashing on start with Ubuntu 20.04

I'm having a problem where every time I open Spacemacs it immediately crashes on Ubuntu 20.04. It was crashing for some actions with Magit and starting a CIDER REPL so I decided to do a fresh install. ...
48
votes
4answers
22k views

How do I use emacsclient to connect to a remote emacs instance?

I'd like to be able to run emacs on one computer: server $ emacs --daemon And then connect to it from another: local $ emacsclient -c server Is this possible? If so, how?
0
votes
0answers
8 views

Using extended glob quantifiers break Zsh mode indenting and highlight

This is a small issue, but annoying to deal with. Suppose I have the following function: function zicompinit_fast () { setopt extended_glob local_options autoload -Uz compinit local zcompf="...
1
vote
1answer
46 views

How to keep keyboard focus on terminal after compiling tex?

My operation system is macOS Catalina. I am using iTerm2 in order to interact with emacs and my default pdf viewer is PDF Pro Reader Light. When a pdf file is updated, PDF Pro Reader Light ...
0
votes
1answer
32 views

Configure the delay before window showing command completions is shown

When I start entering a command and pause, this helpful window pops up at the bottom: When I don't pause, it doesn't show up. But sometimes, it takes more time to complete a command that I know, e....
4
votes
3answers
155 views

How to bind key in use-package

I added a section binding to my config, but one key doesn't work. :bind (("C-c a" . org-agenda) ("<f6>" . org-capture) ("<M-S-return>" . org-...
0
votes
1answer
30 views

How to temporarily switch to another major mode in elisp (with-current-mode ?)

Is there reliable way to temporarily switch the current buffer to another major mode, perform some function, then switch back to the original mode? Basically, I was looking for something similar to ...
1
vote
1answer
23 views

Export beamer handout or presentation function in org-mode?

I'd like to be able to call a function to export to pdf (via latex beamer) from an org subtree. Right now I have properties set up like so: :PROPERTIES: :EXPORT_LATEX_COMPILER: xelatex :...
0
votes
1answer
53 views

programatically manipulating org files

I'm an experienced programmer, but totally new to (e)lisp, and I'd love some help orienting myself in a new project I'm trying out, specifically about any relevant org functions that maybe already do ...
0
votes
1answer
25 views

Remapping the `g` prefix key for all modes (Evil, org and outline minor mode), assigning a single function to `g`

The question is quite intricate. I am using doom-emacs and evil and I am customizing the keys. Usually, something like (define-key evil-normal-state-map "g" 'evil-paste-after) would work. ...
1
vote
1answer
36 views

use-package and dependencies

Given a major mode package foo and foo-x that extends foo, with feature x is there a recommended way to configure them with use-package (assuming :defer t and :ensure t for all? nested use-package (...
0
votes
0answers
21 views

Enabling paredit automatically in clojure and clojurescript buffers

I want to auto-enable paredit it in clojure and clojurescript buffers, and have the following: (autoload 'enable-paredit-mode "paredit" "Turn on pseudo-structural editing of Lisp code....
0
votes
1answer
26 views

Changing buffer name in emacs

How to change the buffer name in emacs to any given string? Useful if one has many shell buffers for various specific tasks and is merely seeing their order of creation.
0
votes
1answer
31 views

Report time at whole hours by prompting mini-buffer

Reference to 31.10.6 Appointments of Emacs Manual It provides a handy solution to report hour and remind appointments: For example, suppose the diary file contains these lines: =M-x appt-add= ...
5
votes
1answer
416 views

Drag-and-drop file does not work anymore

Using Emacs 24.5 on a Gentoo/Kde workstation. Drag-and-drop of files used to work okay (as far as I remember), to open a new buffer on the dragged file. Same behaviour when using emacs -Q. It does ...
31
votes
5answers
9k views

Problems with keybindings when using terminal

I have the following line in init.el: (global-set-key [(control \;)] 'comment-region) It works very well in GUI window, but if emacs is invoked with the -nw option then C-; doesn't comment region, ...
4
votes
3answers
2k views

How to refile into a datetree

Is it possible to refile a dated item into the appropriate place in a datetree? I have seen some posts that describe the use of org-archive-location but I cannot get that to work - perhaps its the ...
1
vote
0answers
22 views

Difference between an org element and entry

What are Org elements (e.g. org-element-type) and entries (e.g. org-entry-get)? The best I can figure is that an entry is anything in the buffer. Org defines properties (org-special-properties and ...
0
votes
0answers
28 views

Why is `git` running incredibly slow with `tramp` and `ssh` and `eshell`

Commands like ls, cd, etc. run perfectly fine using tramp, but as soon as I run a command such as git status, the speed is unbearably slow, and I always receive these messages in the *messages* buffer:...
1
vote
0answers
23 views

Add a background image to pdf export of an org-beamer file

I'd like to add a background image to a single page in a pdf I am creating with M-x org-beamer-export-to-pdf using the Metropolis theme (no relation). The use of the theme doesn't appear to be the ...
1
vote
1answer
30 views

Which keymap variable contains the bindings for `M-x`?

The Help for key M-x key says M-x runs the command execute-extended-command (found in global-map), which is an interactive compiled Lisp function. It is bound to <execute>, <menu>, M-x. ...
2
votes
1answer
64 views

How do I convert scheduled recurring entries into clocked data?

I use org-mode for scheduling and logging in tasks. I clock in non-recurring tasks, however I find it strenuous to clock in recurring tasks. Is there any way I can mark the recurring task done and the ...

15 30 50 per page
1
3 4
5
6 7
388