All Questions

Filter by
Sorted by
Tagged with
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
36 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
13 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
68 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
204 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
368 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
24 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
47 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
65 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
52 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
10 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
140 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
22 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
52 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
20 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
415 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
27 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 ...
51
votes
9answers
8k views

How can I start learning Emacs Lisp?

Background: I'm mostly a vi user and am converting to Emacs. Past the basics and now use it for writing code in C and some Python with plans to do an R conversion too. I wrote (Common) LISP for ...
1
vote
0answers
34 views

Show custom key-bindings in the list of commands

I'm using merlin in Emacs, and in my init.el file I have the following : (global-set-key (kbd "C-c t") 'merlin-type-expr) But when I press M-x and type merlin to show the list of commands (...
1
vote
0answers
24 views

`string-match' and `match-string' in Emacs Lisp [duplicate]

I try to understand the functions match-string and string-match in Emacs Lisp. The manual provides what seems to be (?) a reproducible example: (string-match "\\(qu\\)\\(ick\\)" ...
18
votes
1answer
5k views

How to perform case-sensitive query-replace?

When I do M-x query-replace to replace all occurrences of v by w, then it also matches V (uppercase V). How to force emacs to only find lowercase v ?
0
votes
0answers
17 views

Prefer side-by-side splits over top-bottom splits even when calling `calendar`

From what I understand, Emacs splits windows by first trying a horizontal split and then a vertical split. I'm fine with that behavior, except when in fullscreen mode. I've tried several of the ...
0
votes
1answer
78 views

helm-mu on macOS throws Invalid read syntax: (")

Hej guys, I get an error when searching through my mails with helm-mu. Messages gives Invalid face reference: helm-grep-finish [96 times] error in process filter: helm-mu-candidate-parser: End of ...
0
votes
0answers
51 views

org-roam-capture; Problem with saving the file

i try to use org-roam-capture with Firefox and Chrome on Linux Kubuntu 18.04 with Emacs 26.3. here is my config: (require 'org-roam) (define-key org-roam-mode-map (kbd "C-c r b") #'org-roam-...
20
votes
2answers
5k views

org-mode: how to generate clock report for hours worked each day?

org-clock-report is awesome; however, it reports time spent on each task. Is there any custom command that you use to generate a clock report showing hours worked, across tasks, for each day? The ...
3
votes
2answers
556 views

How can I open magit-status in a new frame if such a frame does not already exist?

How can I open magit-status in a new frame? I've tried to write a custom function for this but it has some issues as described below. (spacemacs/set-leader-keys "gs" (lambda () (interactive) ...
11
votes
3answers
2k views

Unbinding key using use-package

I'm trying unbind org-cycle-agenda-files which is set by default to C-' and C-,. My weapon of choice to do so is use-package package. On github.com/use-package/bind-key.el page I have found ...
0
votes
1answer
18 views

How can I display desktop-dirname in the modeline (or elsewhere)?

I often get confused about the current desktop I'm using. Currently, I have to call (display-variable desktop-dirname) to see in which desktop I'm working. It would be much nicer, if the current ...
2
votes
1answer
85 views

Remapping global keybindings to a prefix command

The following works: (define-prefix-command 'my-map) (global-set-key (kbd "C-@") 'my-map) ;; MacOS (global-set-key (kbd "C-SPC") 'my-map) ;; Windows 10 The following does not: (global-set-key [...

15 30 50 per page