All Questions

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

How to impliment a “with-undo-collapse” macro using change group feature?

Recently emacs has a feature undo-amalgamate-change-group which can be used to merge multiple actions into a single undo step. How can this be used to make a with-undo-collapse macro similar to this ...
2
votes
1answer
284 views

TBLFM insert new row with current time

I want to insert a new row at line 2 in a table (preferably using TBLFM), and I want it to be prefilled with the current date (col 1) and time (col 2). How do I insert a new row (something like #+...
1
vote
1answer
41 views
+100

Enable org-agenda-clockreport-mode in TODO agenda view

Is there any way to enable clockreport-mode in a TODO-agenda view? I mainly use this view because I don't really set dates for my tasks so the agenda-view is not really helpful for me (I'm using ...
0
votes
1answer
23 views

changing display function in define-word package

How to replace the displayfn from message to a function which displays the result in a temporary window? (I have limited knowledge of elisp.)
0
votes
1answer
5 views

Sum org-mode table column based on other column

I have this org-mode table: | Category | Category Budget | Needs Transfer | |------------------+-----------------+----------------| | Rent | 3000 | t | | ...
0
votes
0answers
6 views

Export a docx file to org using pandoc but without the property drawers

If I export a docx file to org using Pandoc as follows pandoc -s test.docx -o test.org I get a nice org file with markup. However, I also get unwanted properties with each heading in the file, ...
1
vote
0answers
5 views

Save my Emacs registry entries without having to use desktop-save

I frequently created registry entries which I wish to keep across Sessions. Emacs does not save registry entries across sessions. This can be done by using desktop-save, but the downside is that ...
3
votes
1answer
300 views

org-element-parse-buffer usage

I've been struggling with the basic org-element-parse-buffer (see here) usage. Specifically, how do I make it work? It's not interactive, so it has to be called from within an org-mode buffer, I'm ...
1
vote
0answers
21 views

What does w mean in “worg”

It might be trivial, but google searches do not help. What does "W" mean mean in Worg?
11
votes
3answers
2k views

Possible not to use undo-tree in evil mode?

Every so often I run into bugs in undo-tree, where I can't redo, with the following known bug, another report & reddit thread. primitive-undo: Unrecognized entry in undo list undo-tree-canary ...
0
votes
1answer
399 views

compilation-scroll-output doesn't work if *compilation* buffer is created by hand

Emacs version 25 I have a short piece of elisp to create a few buffers and split my frame into multiple windows that are displayed the way I like. This code creates a *compilation* buffer and ...
0
votes
0answers
4 views

How to replace all search-highlighted text resulting from a search with evil mode?

Once there is a search result, either from... Pressing / and entering the search term. Pressing * over a word. How can I replace the highlighted text after performing a search? Currently I ...
1
vote
0answers
7 views

Cannot set sql-buffer variable from within a SQL buffer

I'm trying to link a SQL buffer to SQLi buffer by calling sql-set-sqli-buffer but nothing happens when the function is called. I'm doing this because I want to start muliple SQLi buffers with each of ...
1
vote
1answer
66 views

org-edit-special to respect the :lines parameter of `+INCLUDE`s

When one invoke org-edit-special at the line containing an #+INCLUDE, it opens a new buffer with the referenced file. Although, if an #+INCLUDE contains the :lines clause it will not respect what is ...
1
vote
2answers
28 views

Insert Org or Markdown code blocks with Babel in org-mode?

In org-mode, if I do something like this: #+begin_src org ## What does this PR do? - Updates the Dockerfile to make the `dev` service connect to a shared network at startup - Registers the `...
1
vote
1answer
29 views

Adding speedbar support for a language major mode?

It appears to me that go-mode and speedbar are not working together - the .go files do not appear in the file list. https://github.com/dominikh/go-mode.el/issues/270 is a bug on go-mode which ...
2
votes
0answers
13 views

Easily update dates for a recurrent set of TODOs in org mode

Every semester I teach the same course and for every semester there are several TODOs that are always the same relative to the starting date (i.e. the first day of class). How can I take the previous ...
0
votes
1answer
21 views

In org mode, how can I hide body text but show drawer contents?

Using spacemacs I would like to be able to display an org mode document such that: all headings are visible all drawers are open and their contents visible all other body text is invisible It would ...
0
votes
1answer
31 views

Evil key bindings with evil-define-key do opposite of what I want?

Below is the entirety of my Evil key bindings in init.el: (evil-define-key 'normal 'global (kbd "SPC") (make-sparse-keymap)) (evil-define-key 'normal 'global (kbd "SPC TAB") #'ivy-switch-buffer) (...
0
votes
1answer
28 views

Accessing regular expression groups outside a buffer

The code from here accesses groups of a regular expression match in a buffer in interactive mode: (let ((re (concat "\\([ \t]*" org-clock-string " *\\)" "\\([[<][^]>]+[]&...
0
votes
1answer
44 views

Spacemacs Clojure Cider Debugger Gives Error, “No reader function for tag dbg”

After connecting Cider to Spacemacs, when trying to set a debug breakpoint on a function using ,-d-b (cider-debug-defun-at-point), I see the following message in the *cider-error* buffer. 3. ...
0
votes
0answers
23 views

Tools to develop and debug ELISP code

I have some experience in Emacs-LISP. Today I spent 6 hours writing LISP code that I guess-timate would have taken 1h30 to write in Python because my workflow to develop and debug is very clunky. In ...
0
votes
0answers
19 views

Stop Emacs From Moving Text / Point to Bottom of Screen

I don't fully understand what is happening but I would like it to stop - I am using org-mode and ESS, and when I am in an R src block, things like hitting tab to auto-indent a line of code cause point ...
0
votes
0answers
26 views

How to extract symbols from an elisp buffer?

While I could parse the elisp myself, is there a way to extract symbols from an elisp buffer? That is, variable names, macros & functions - not part of strings.
0
votes
0answers
5 views

Fuzzy search as default mode in ranger in spacemacs

I am using ranger within spacemacs. One useful feature an explorer in windows (directory opus) I used has, is that by pressing keys it automatically starts to filter files with names corresponding to ...
1
vote
3answers
687 views

Finder of MacOS Catalina cannot open a file with Emacs

After upgrading to macOS Catalina, Emacs (v26.3 from GNU Emacs for Mac OS X) works very strange. Without Emacs already running, Finder can open a file with Emacs as usual. But once Emacs.app is ...
4
votes
2answers
1k views

Terminal Emacs not receiving <wheel-up> or <wheel-down>?

From what I understand, I should be able to get mouse scrolling to work in emacs nox mode with the following: (require 'mouse) (xterm-mouse-mode t) (mouse-wheel-mode t) (global-set-key (kbd "<...
1
vote
1answer
34 views

Mark isearch result

I'd like to mark the current isearch result so that it can be copied or cut (killed) via M-w and C-w. Is there a ready-made function for this? The solution below provided by @danielpoe over here ...
6
votes
1answer
73 views

How to group digits in minibuffer when sending input to calc?

Is it possible to send something like 200*100,000 as an input to calc? Documentation says Long numbers can be hard to read if they have too many digits. Press d g (calc-group-digits) to enable ...
1
vote
1answer
65 views

Copy or paste between terminal emacs 26 and Mac apps

I am using terminal emacs a lot, and the method from Copy text from Emacs to OS X clipboard works for a long time. But after upgrading to Emacs 26, if I kill a string like "你好" from emacs, and paste ...
0
votes
1answer
27 views

How can I show a quick menu for the user from Emacs Lisp?

I found EasyMenu and and I tried the example: (easy-menu-define my-menu global-map "My own menu" '("My Stuff" ["One entry" my-function t] ("Sub Menu" ["My subentry" my-obscure-function ...
2
votes
0answers
36 views

show white spaces only when region is selected

whitespace-mode will show the whitespace all the time in entire buffer, Is there the way to show whitespaces only when the region is selected. which is pretty cool to have, does there mode exist for ...
0
votes
0answers
13 views

unable to access super-p and @ on macOS (for use w projectile)

Warning: I’m a macOS user using spacemacs rather than plain GNU emacs ;-) I would like to use projectile, which itself heavily use the « super » key. Unfortunately, when I want to use s-p, it trigger ...
1
vote
1answer
111 views

Align lines of two separate files in two split-windows?

Is there a way to align line numbers of separate buffers, one in each split window?
1
vote
1answer
65 views

Automatically open the exported file as soon as `org-export-dispatch` succeeds

What is the simplest way to configure org-mode to automatically open the exported file as soon as org-export-dispatch succeeds?
0
votes
1answer
170 views

Issue binding space as leader with evil-mode and general mode

I am currently trying to set up my config so that I can use evil-mode while also using the space key as a local leader for some command while mapping my keys with general.el package. ;; hide tool bar ...
1
vote
0answers
21 views

How to make gdb mode send proper filename to gdbserver? Running gdb from pure terminal works

I am trying to debug an application on a remote environment. Ofcourse running Tramp over gdb works as in https://www.gnu.org/software/emacs/manual/html_node/tramp/Remote-processes.html, but you miss ...
4
votes
1answer
228 views

(How) can I emulate {eshell,comint}-output-filter-functions in term?

What I want to do from inside a term shell is have a function called when there is new output or a certain regexp (e.g. a prompt) appears in in a term's output. The callback function should then be ...
0
votes
0answers
5 views

Force Org-Link to inherit a different face when placed in org-table?

I currently have (variable-pitch-mode +1) set on a hook when I start org-mode. I have customized my org-mode faces such that faces like org-link inherit from my variable-pitch face. This looks great ...
0
votes
1answer
29 views

How to run a custom formatting tool on save?

While there are packages that format on save, I'd like to be able to run a custom command that auto-formats a file on save. Upon saving it runs an external process that: Takes the buffer as stdin. ...
0
votes
1answer
608 views

yaml frontmatter in org mode

When exporting and org file in emacs to either html or md for a jekyll-based web page, the yaml front matter gets twisted. As suggested here, I have attempted enclosing it in an html block in the ...
0
votes
1answer
12 views

How to handle multiple kinds of errors with condition-case?

With condition-case, is there a way to handle multiple kinds of errors? Currently I have user-error and error both being handled. Is there a way to de-duplicate these checks to handle any kind of ...
1
vote
1answer
54 views

Can I get whitespace-mode to display a sequence of two leading spaces , specially?

Like this: I have been able to get whitespace-mode to display dots for leading spaces. But I want to specially display each sequence of 2 leading spaces, with maybe a vertical bar. Possible? ...
0
votes
1answer
281 views

how can i access diff-hl-flydiff-mode?

i'm using spacemacs with emacs 25.2.1 on windows8.1 64bit. Description: i want to use diff-hl-flydiff-mode. Tried: First i activated the spacemacs layer version-control. That works. But how can ...
0
votes
1answer
181 views

projectile-find-file and ivy - create file with subdirectories

I'm using ivy and projectile. When I search for some file with projectile-find-file, and the file does not exist, I would it to be created. If it is inside directories that also do not exist, ask if ...
0
votes
0answers
89 views

Mac OS Catalina random crash

I've been experiencing a weird problem. Ever since updating to catalina my emacs crashes at random intervals. It seems that there is no rule (or I cannot see it) to when it happens. The frequency is ...
0
votes
1answer
237 views

Retain system color scheme when running without GUI

I'm typically running emacs -nw: problem is that Emacs overrides terminal (bash) color scheme and uses it's own default one which is in some cases unreadable. I would like emacs to use default ...
1
vote
1answer
32 views

How can I turn off magit's warning that a commit message has a second line that is non empty?

Every time I have a second line in a commit message, magit prompts/warns me when commiting... Is there a way I can turn this off warning? I've found the following in the docs https://magit.vc/manual/...
12
votes
2answers
201 views

Saving Calc trail for later use

Is there a possibility to save the Emacs Calculator Trail (as a file) and to restore it later? If not, should it be feature? For example, when I have an incomplete calculation but have to shutdown ...
0
votes
0answers
18 views

Bongo Back Ends

The bongo music player has been the coolest find yet in my on going discovery of the many capabilities of Emacs. My only problem is that it can't seem to 1. open or 2. play any of my .flac files. I ...

15 30 50 per page