All Questions

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

How to invoke another function only if there is some error with a given function?

Assume that I have two functions, say function1 and function2. I would like to execute function2 only if there is some error during the execution of function1. So far, I have tried the below code (...
0
votes
0answers
16 views

Uncheck checkboxes on completing recurring task

I would like any checked checkboxes under a TODO heading to be unchecked when I mark it as DONE, if the heading is a habit and/or reoccurring. The usecase is to have a list of checkboxes under a ...
0
votes
0answers
18 views

ox-odt and ox-ipynb conflict?

It seems that there is a conflict between the ox-odt (from Emacs 26.3, Ubuntu 20.04) with the ox-ipynb when exporting an org file. I am not sure if I configured it right. But after I install ox-ipynb (...
0
votes
0answers
21 views

spacemacs search and replace - rebind keys to emulate classic emacs

I started using Spacemacs on a Mac recently and to my horror discovered the M-% doesn't bind to query replace, but takes a screenshot instead. How can I reconfigure Spacemacs to behave like classical ...
0
votes
1answer
12 views

How to show C/C++ doxygen section titles in the mode-line?

For C/C++ code that use doxygen sections, it would be useful to show these in the mode-line, without slowing down the mode-line display significantly. Is there a good way to add context information to ...
1
vote
1answer
17 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 ...
2
votes
1answer
40 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 ...
0
votes
0answers
14 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
1answer
36 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 ...
1
vote
1answer
15 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
3answers
78 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
1answer
32 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. ...
0
votes
0answers
19 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 ...
1
vote
1answer
47 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:...
2
votes
1answer
31 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
3answers
49 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
80 views

Display a horizontal underline on 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
31 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 &...
0
votes
1answer
36 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 ...
0
votes
0answers
14 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
11 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:...
1
vote
1answer
32 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
9 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
17 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 ...
0
votes
1answer
29 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 ...
2
votes
1answer
74 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"...
0
votes
1answer
63 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
16 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
1answer
46 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. Typically I do this from ...
0
votes
1answer
30 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 ...
2
votes
1answer
22 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
22 views

Asterisk in interactive specification

Just when is it appropriate to put the asterisk * into the interactive spec of a command function? The elisp manual says the effect is to cause an error if the command is attempted in a read only ...
2
votes
1answer
45 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 ...
6
votes
1answer
912 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: ../../...
0
votes
0answers
47 views

Limit property entry by type or regular expression

It is possible to get Org to limit the values you can enter for a property by using the special _ALL property. For example, if I want to limit the CONDITION property I could use: #+PROPERTY: ...
1
vote
1answer
17 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
18 views

Use iconv directly on the selected region to convert codes

I copied and pasted the C code as: int main(void) {    statements    return 0; } to org's babel code block, when strike C-c C-c, it report error: /tmp/babel-uaYVXU/C-src-Pd1SZs.c:11:6: error: stray ‘...
2
votes
1answer
51 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
30 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-...
0
votes
0answers
31 views

Org-ref: how to get absolute path of bibliography in exported LaTeX file

I use Org-ref to insert references in Org mode when writing articles. I prefer to put bib files in a separate place, say /bib/ref.bib, instead of putting together with org files in ~/org/. After ...
0
votes
0answers
47 views

How can I provide the first-error and next-error initial positions as region selection in order to save to the kill-ring?

I am running a make command. I'd like to capture the first error and output it to a file. How can I select as a region from the beginning of first-error position to the position right before the next-...
0
votes
1answer
30 views

Pandas data frame as table

I'm enjoying learning org-babel to write literate documents and am trying to include summary tables produced by Pandas describe(). I found an old thread with some answers but none of the provided ...
0
votes
0answers
49 views

Python : name '__file__' is not defined

So as you can see, in my terminal, I was able to execute the file without error, but once I tried from the python shell, whether in the terminal or the one integrated in Emacs, there is an error, it ...
0
votes
1answer
44 views

How to diagnose emacs running at 100% cpu

I'm having a problem where occassionally emacs will run at 100% cpu, and just hang forever. I've attached gdb to the process, and this is the stacktrace: #0 0x00007fc210e5c5bb in pthread_sigmask () ...
0
votes
2answers
40 views

how to make emacs follow links to files outside of org mode?

I'd like to embed a link to a file in say Python code, is there a way to let emacs know to look for org style links outside of org files? Or is there a better way of achieving this? Cheers
0
votes
1answer
58 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: (...
0
votes
1answer
27 views

Can I make projectile open a default file when I switch to a project?

I'm using helm-projectile in spacemacs. SPCpp runs helm-projectile-switch-project, which gives me a helm completion buffer for projectile projects. When I choose a project and hit enter, I then get a ...
0
votes
0answers
14 views

No match for ess-rdired

I'm not able to invoke the rdired-buffer when typing M-x ess-rdired, I get a "no match"-message. I'm also not able to find the function ess-rdired in the documentation (via C-h f). Any idea ...
0
votes
0answers
29 views

How do I reload config in other instances of emacs?

Say, I changed ~/.emacs, but I have another instances of emacs running. I believe unless I do something, they might change the config (because they have a stale notion of its contents), which in turn ...
0
votes
0answers
25 views

debugging c++ code with dap-mode in Emacs does not display std::variables (e.g., vector, map, etc) correctly. Any idea to solve this problem?

When I debug c++ code in dap-mode with Emacs, the std::variables, such as vector and map, always have values, [0]: std, shown in the local variable area. Does anybody know what is going on? I am on ...

15 30 50 per page