All Questions

Filter by
Sorted by
Tagged with
0
votes
2answers
112 views

How do I run an external command on an org mode source block?

I'm writing a screenplay using Fountain mode. My org file is set up so there are multiple screenplays in a given file, for example * Number one! #+begin_src fountain INT A PARK IN SAN FRANCISCO ...
0
votes
0answers
3 views

How to see brief location in the code in C/C++ mode

While editing a long C++ file, I use rtags to jump around. It would be very handy for me to know where I am in terms of where the cursor is relative to the classes-functions. For example, it would be ...
0
votes
1answer
25 views

How to wrap / intercept commands bound to a given key?

I am trying to have a global override for a binding, where I am checking for some specific conditions to hold. If they don't, I would like that binding to do whatever it was going to without my ...
0
votes
2answers
30 views

How to list a key binding in any modes?

For a given command, lets say C-c C-k, how to list the bindings of this key for all modes ? C-h k KEY show bindings only for the current mode. It's the same for invert commands like C-h f and C-h b. ...
0
votes
1answer
51 views

Add horizontal line to every line

I recently saw this image on r/unixporn. How can I recreate the 'notebook' effect: the broad line-height and underline of each line, but in Emacs (iiuc this is achieved using rxvt + pixmaps in Linux).
0
votes
0answers
26 views

How can I provide the first-error and next-error initial positions input to save to the ring buffer?

How can I get the first-error as a region instead getting it from a user's manual region selection? How can I then provide the first-error and next-error initial positions as input to save to the ring ...
2
votes
1answer
80 views

Pre-populate property entry menu with items from setup file

I have a collection of Org files that all link to a central properties file in which I specify _ALL properties so that I can get uniform entry of information across many files: #+SETUPFILE: ../../...
2
votes
0answers
15 views

Is there a way to mark certain file types as binary for magit, so that they are not diffed?

Magit sometimes becomes very slow, when it thinks that certain large files should be diffed. Examples for this are SVG graphics or SQL dumps (technically seen as text files). The files are small ...
1
vote
1answer
16 views

sectioning in org-mode to beamer does not work

I am trying to subdivide my presentation further into section and according to the org docs, setting #+BEAMER_FRAME_LEVEL: 2 should allow for top-level headlines to be interpreted as sections, whereas ...
0
votes
0answers
9 views

Auctex freezes when editing an equation containing '' at the end of a long document

Whenever I edit a particularly long document (thousands of lines) with auctex, I start getting freezes when I edit a math equation that contains a double prime '' far down in the document. My guess (...
0
votes
0answers
69 views

Why is this function failing?

I'm sure you've seen this title a million times before - let's make it a million and one. I booted up emacs yesterday, and a function that used to work has now stopped working as normal. I didn't ...
1
vote
1answer
12 views

How to override Q in term-mode with passthrough if the shell process is still live?

I wrote the following emacs lisp procedure to kill a dead ansi-term buffer. It works well if called with M-x. Also, it appears to run correctly when the called in a living term buffer. However, dead ...
0
votes
0answers
17 views

How to wrap visual program with term? [duplicate]

I have installed visidata and am trying to integrate into my Emacs workflow through term-mode. As a proof of concept, I'm trying to successfully explore the mtcars data set as it would work when ...
0
votes
2answers
58 views

how to tell org mode to make subsequent lines children of the hierarchy

I have a list like this: remember to undo: product 0 discrimination limit(100) ENV['MANUAL_...'] When point is at the beginning of line 1, how can I tell org mode to make subsequent lines children ...
2
votes
1answer
26 views

Add last review date for a heading

I want to add a last-reviewed date for some headings. And in org agenda view, I want to filter outer the headings that have not been reviewed for some days. What's the org tools/functions/setup that ...
0
votes
0answers
14 views

critical markup in org-mode or emacs?

Is there support for Critical Markdown in org-mode or in Emacs text editing in general? I am interested in MSWord style track-changes in plain text, and learned that Critical Markdown fits the bill. ...
2
votes
2answers
6k views

File error: Cannot open load file

I have the following ~/.emacs: ;; Added by Package.el. This must come before configurations of ;; installed packages. Don't delete this line. If you don't want it, ;; just comment it out by adding ...
0
votes
0answers
11 views

How do I make emacs indent relative to the beginning of the previous line?

Here's how emacs indents e.g. Python code: a = myfun(b, c) I'd like it to be this way: a = myfun(b, c) Reasoning? If I later replace myfun with myfunction, in the first case it becomes:...
0
votes
1answer
59 views
+50

Find file in a project in a mono-repo like `projectile-find-file`

My code base consists of a "mono-repo". A single large repository containing a flat structure of projects. Top Project1 Project2 Project3 Library Library I've been using ...
1
vote
1answer
58 views

How can I automatically swap frame buffers if the buffer is already open?

I've seen the https://www.emacswiki.org/emacs/buffer-move.el script, but I'm trying to something a bit different. Suppose I have a frame with a buffer from file A.h in it and A.cpp in another frame ...
3
votes
2answers
252 views

mu4e adds sender with reply-all

I use mu4e. When I reply-all to an email, my own email appears in CC. I have these lines in my configuration: (setq mu4e-compose-dont-reply-to-self t) (setq message-send-mail-function 'smtpmail-...
10
votes
1answer
310 views

Org-Mode repeating task until

Simple question here, pretty new to org mode. I have an assignemnt I want to do once a day until a specific date. How can I have it scheduled for every day, but end on a ceratin day? This is what I ...
0
votes
0answers
17 views

Adding a new code formatter

How can I add a custom formatter that will be picked up by doom-emacs' format ((format +onsave)) module? I want to run the erlfmt program on save when editing Erlang files, but I'm not sure how I ...
6
votes
1answer
491 views

how to get seconds on org-clock measurements?

With C-c C-x C-i and C-c C-x C-o we can get measurements on how much time we spend on tasks: :LOGBOOK: CLOCK: [2016-11-21 Mon 22:50]--[2016-11-21 Mon 22:57] => 0:07 CLOCK: [2016-11-21 Mon 22:30]-...
0
votes
0answers
27 views

org-mode: copy link to different part of the document

I have created a new org document and invoke org-insert-link to insert a link. Now it's rendered like this: Link description Now if I copy the link via the usual method of emacs, I just get the text &...
47
votes
2answers
17k views

How can I troubleshoot a very slow Emacs?

I am writing a document and I have a problem with Emacs' performance that I think appeared just yesterday. I haven't made any alterations in my init file or installed any new packages. The problem is ...
0
votes
1answer
274 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
1
vote
1answer
15 views

Excluding frames from handout when exporting to LaTeX Beamer

I would like to exclude certain slides when I export my document as a handout using the corresponding option #+LaTeX_CLASS_OPTIONS: [handout]. I know what I need to arrive at in LaTeX to achieve this: ...
0
votes
0answers
6 views

emacs debugging -interpreter-exec being displayed when should see string returned from function

This is a problem I am seeing running emacs v26.1 on Windows 7, but the problem does not appear to be present when running on ubuntu. Code below: #include <iostream> #include <string> ...
0
votes
0answers
7 views

Can't drag and drop ORG files from Finder as Emacs creates a downloaded copy

The title explains it clear: I use Prelude. Whenever I drag and drop a ORG file from Finder to the Emacs window, I get a buffer saying: #+DOWNLOADED: file:/path/to/file/myorgfile.org @ 2020-07-06 08:...
2
votes
1answer
41 views

What is the runtime complexity of using beginning-of-line?

I did a test where going to from the end to the beginning of a 50 million length line happens instantly when using beginning-of-line. I wonder if this is because it is a C primitive or because Emacs ...
0
votes
1answer
52 views

org-set-effort fast effort selection?

I wonder if there is any easy way to configure effort selection dialogue to allow selecting effort value from the list using single key. Currently I have configured Effort_ALL in the following way: (...
2
votes
1answer
69 views

WoMan italic `\,VARIABLE\/ representation

When I do M-x woman => ln , as you can see italic variables are represened as in between following pattern \, - \/. How could I revmoe or fix it? Setup: (setenv "MANWIDTH" "72"...
1
vote
0answers
20 views

prettify-symbols-mode enabled for major mode, but ligatures don't show until toggling prettify on and off

I'm pretty new to emacs and giving it a shot because it seems to be much better integrated with the OCaml tool chain than any other editor. Since OCaml uses a lot of symbols, I want to enable ligature ...
0
votes
0answers
5 views

noqa does not suppress the warning for pyflakes:imported but unused [PYF]

The error I am getting is pyflakes: 1 '_utils.colorer' imported but unused [PYF]. I was not getting this error but it started to emerger right after I enabled mypy3. Using # NOQA, # flake8: noqa did ...
0
votes
0answers
15 views

saving cloned buffers in workspaces/desktops/perspectives etc

i would like to be able to save a window (in emacs terms) layout with cloned buffers. i don't need it to save a series of buffers, i just need to be able to load a complex window layout when i work on ...
2
votes
1answer
16 views

Derived major mode: new keyword fontification not playing nice with parent mode's

I am writing a major mode derived from f90-mode in order to fontify the syntax of a commonly used Fortran preprocessor, fypp (similar to jinja2 for HTML templating). Here's a contrived example of what ...
0
votes
1answer
28 views

Open folder in emacs and type name to match file

I have this line in my init.el: (global-set-key (kbd "C-c g") (lambda() (interactive) (find-file "~/Dropbox/myorgfiles"))) So when I type C-c g I get the directory contents of the ...
0
votes
1answer
27 views

How to call an interactive function and pass arguments to it from within Elisp?

I'm trying to compose a link to the describe-package help buffer to the xref package like this: [[(elisp:(describe-package "xref"))][xref]] But it can't execute. So I wonder how to pass ...
3
votes
2answers
837 views

Using `emacsclient` as `git config core.editor` and invoking `git commit` as `shell-command` in Emacs?

I am trying to use Emacs 25.1.1 (graphical version, Windows 10) as both the primary editor and the editor for git operations. In my workflow, I invoke git through M-x shell-command. I tried the ...
2
votes
1answer
44 views

How do I save raw bytes into a file?

I'm trying to make a .wav file generator in Emacs Lisp. I have some binary data, as a sequence of bytes: (setq binary-data (list 62 236 60)) I would like to insert that data into a file. I expect ...
8
votes
1answer
532 views

Read and edit Thunderbird's maildir with GNUS

As forums tell it should be possible to use GNUS for reading maildir created by Thunderbird. I did not find, however, any working implementations posted. And in my own experiments I could not make ...
0
votes
1answer
28 views

switch-to-buffer from org mode code block

Evaluating a code block containing (switch-to-buffer "test-buffer") does not display test-buffer. It creates the buffer, but it does not switch to it. #+BEGIN_SRC emacs-lisp (switch-to-...
7
votes
3answers
1k views

Outside of Emacs what other software supports org-mode syntax?

Context In my spare time, I've been adding very limited support for org-mode syntax in the Atom text editor for my friends that absolutely will not switch to Emacs. Over the last few years I've ...
3
votes
2answers
67 views

Dired; Is it possible, to show video duration as column in dired view?

i want to let dired show the duration of multimedia files as a column inside the dired buffer detail view. Is it possible? Any third-party extensions for dired? Currently i use exiftool -T -...
0
votes
1answer
22 views

Capture org-agenda and show-some-entry-text into dynamic block

In summary I want to capture org-agenda into a dynamic block with some entry text. At the end of the week I provide a report as to what I've been doing and a list of what I intend to work on in the ...
0
votes
0answers
39 views

Can I set MANPAGER to open a man page with emacs?

I am able to use man inside emacs. M-x man , <ln> , [enter]. => From the shell can I open man pages from the shell? For examlpe doing $ man ln can open the man page inside the emacs? $ ...
0
votes
0answers
14 views

Simple password based file decryption/encryption compatible with command line program?

What works currently: With emacs25 (as comes with ubuntu 18) I use ccrypt on the command line to selectively en/decrypt a few specific text files. There is a package elpa-ps-ccrypt which, on ...
0
votes
0answers
24 views

mu4e: Refiling email while making an org-todo

Background: I read my email through mu4e in (Doom) emacs. I set up an org-capture template that stores a TODO with a link to the current email I'm viewing, all working great. But typically I do this ...
1
vote
1answer
537 views

How to disable semantic highlighting in lsp-mode?

Language server mode has a variable for semantic highlighting lsp-ht, I would like to disable all syntax highlighting in lsp-mode. Is this possible? (setq lsp-enable-links nil) (setq lsp-enable-...

15 30 50 per page
1
2 3 4 5
388