All Questions

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

Delaying (require …) for packages that define minor modes

With a package that defines a minor mode which calls an external function at run-time. Is it reasonable to move this:(require 'my-runtime-dependency) in the body of the code which enables the minor ...
0
votes
0answers
4 views

org babel sql results output in raw form

Is the way to get same output as in terminal with ob-doc-sql. Executing the sql-query in org will process results into org-table ignoring other than table information. It doesn't fare well with ...
0
votes
0answers
9 views

Comment out / uncomment source blocks on state change in org-mode config file

I started to move my config file to an org-file just recently. I wondered if it was possible to use the TODO state to activate or deactivate source blocks in the entry under the heading. This way it ...
2
votes
1answer
13 views

how to properly move forward to the next sexp

I was expecting a similar result with the two snippets below, but this is what I've got: (with-temp-buffer (insert "(a)(b)(c)") (goto-char (point-min)) (list (prog1 (cons (point) (cons (sexp-...
0
votes
1answer
7 views

Split code across multiple SRC blocks?

For my current config, I'm tangling an org-mode buffer into my init.el, and I have a few sections where I'd like to insert rich text between segments of Emacs lisp code, like the following: ... #+...
0
votes
0answers
23 views

Poor performance with Tabbar

Tabbar is refreshing groups like 14+ times at once (probably number of tabs) and causing severe slowness with the mods I made on it (lots of IO to sort tabs in mod time). What is the preferred way to ...
0
votes
1answer
17 views

How to always display inline images by default? Existing solutions don't seem to take effect

I'm trying to always display inline images in my org mode files. I have images inserted as [[my-image.png]]. What I have already tried: Set startup variable (see this answer: (setq org-startup-...
0
votes
1answer
10 views

org agenda: only show immediate subtask for task with dependencies

Let's say I have a project with three subtasks: * TODO project [1/3] :PROPERTIES: :ORDERED: t :END: ** DONE subtask1 CLOSED: [2020-04-05 Sun 15:12] ** TODO subtask2 ** TODO subtask3 I have ...
1
vote
0answers
15 views

Include DONE from TODO items in agenda

I have some recurring tasks for habits that I want to disappear after setting them done, but I also want a special agenda view, showing when items were completed, to see how well I have been keeping ...
4
votes
1answer
90 views

Getting started `use-package` question

I was reading the use-package documentation, which says, "Here is the simplest use-package declaration:" ;; This is only needed once, near the top of the file (eval-when-compile ;; Following line ...
1
vote
1answer
47 views

How can I get the effect of buffer-local symbol plist property values?

Does Emacs have a way to set buffer-local properties on symbols? It's well-known that there are buffer-local variables. But a property belongs to a symbol, not to a variable. Hence, if I have ...
0
votes
0answers
11 views

How does one debug errors in a process filter, (setq debug-on-error t) does not pop up a *Backtrace*?

With annoying frequency I get errors in my *Messages* buffer that seem to come from process-filters however, I never get a *Backtrace* for them. So, I have to play around and do similar experiments ...
1
vote
1answer
28 views

Does `use-package` reduce startup time? If so, how?

My understanding of Emacs's package management is that Emacs automatically loads all installed packages. use-package itself is a package, which only becomes usable after (package-initialize), at ...
1
vote
1answer
10 views

Replace a filename in init.el using sed from bash script

So I have different customized themes. Different customized themes are written to a separate custom .el files and get called in the main init.el file. For example: (setq custom-file "~/.emacs.d/...
2
votes
0answers
27 views

Emacs keyboard macros ? all over

I have used keyboard macros for a long time, but moved between companies, systems, and various machines over my career. I used to be able to record macros and insert-kbd-macro into my .emacs file and ...
0
votes
0answers
6 views

Prevent the agenda from being rebuilt upon clocking in/out?

Every time I start/finish a clock, if I have the agenda open in a buffer, the agenda gets rebuilt, which in my case always freezes Emacs for a few seconds and causes some annoyance to my workflow (...
0
votes
0answers
5 views

Is it possible to show the specific clock interval breakdown in a clock table?

The clock table is great for an overview of what I did over the day/week. But I would also like to see when in the day I performed the specific task. It would be great if I can see the actual clock ...
1
vote
2answers
18 views

Help with function advice: Unknown add-function location ‘asm-calculate-indentation’

I'm trying to modify how asm-mode does its automatic indentation. I thought I would use the following: (defun yasm-calculate-indentation (oldfun) "Add the formatting for a few other keywords I like....
0
votes
1answer
9 views

Alt-Shift-Left and -Right (M-S-<left>/<right>) do not work in emacs on Raspberry Pi (org-shiftmetaleft / org-shiftmetaright)

I am on a Raspberry Pi with Raspbian and any shortcut with Alt-Shift-arrow has no effect in emacs org-mode. I discovered it while trying to use org-shiftmetaleft and org-shiftmetaright. This is my ...
1
vote
1answer
29 views

Any equivalent of R+ESS for python?

I do a lot of R coding on Emacs – on Windows – using the wonderful ESS package. What I particularly like is that I can: start an R session, and then send lines or regions of the script I'm working on ...
1
vote
1answer
37 views

Get process id for the Emacs own process

I'm supporting some elisp code that creates a temporary filename using a prefix and the user id. When I develop this, that is not enough since I will be running multiple instances concurrently. So I'...
0
votes
1answer
8 views

Enable ox-hugo Auto-export on saving

I am trying to establish an ox-hugo workflow using the Auto-saving feature described in the official website. However, when trying to enable it using the following snippet: (("content-org/" . ((org-...
1
vote
1answer
21 views

How to enter overlined characters?

Example: R̅E̅S̅ What I already tried, to no avail: Type R, followed by C-x 8 RET OVERLINE RET What works but is not nice: Copy the example above and edit it.
1
vote
1answer
42 views

Org (and org-capture) uses English for calendar dates, no matter what I do

The problem: When I use org-capture to write on my journal, it writes the month as April and the day as Friday. But everything in my system is in Portuguese, so it should be "abril" for the month, ...
0
votes
1answer
21 views

helm-bibtex and Zotero with better-bibtex — Cannot find PDF

Using org-ref and helm-bibtex I can insert a reference into my org file that will be displayed as a link in the shape of cite:kaufmann_eigensolver_2007. I can hit RET and get a menu from helm-bibtex ...
0
votes
1answer
16 views

Modifying task reveal behavior with state changes in org-agenda

In org-mode 9.3.6 and GNU Emacs 26.3, marking a task as done in org-agenda also reveals the task in its buffer. Only the task subheader itself is shown. Here's an example: Before (buffer left, agenda ...
1
vote
1answer
28 views

can show-trailing-white-space be forced to ignore blank lines

I'm trying to use the flag show-trailing-white-space and it usually shows me what I want. I.e., I never want dangling white space at the end of a line containing text. However, between lines of text,...
0
votes
1answer
14 views

How to make org file type link search work with numbers?

I am trying to using a link to jump to a number in another org file. Searching for keyword numbers works for internal links but does not when searching in a different file. It works with words but not ...
0
votes
0answers
12 views

Structure templates: handling exportation of custum templates

When using C-c C-, to insert a structure template, there is an option to add a "custom" template [ ] Press TAB, RET or SPC to write block name I've inserted one called questions, i.e. #+...
2
votes
1answer
17 views

file-local-variables not evaluated on load

Here is my example mwe-1.tex local variable declaration from within this file is %%% Local Variables: %%% mode: latex %%% mode: orgtbl %%% End: when I execute this command in a shell: emacs -q -...
1
vote
1answer
23 views

How to regex match words? (in multiple languages)

I have a simple regex search which matches [A-Za-z], however I would like it to match other characters which would be used in dictionary words for non-english languages. e.g. ü, Ø, ɵ 人参, while ...
0
votes
1answer
26 views

Abbrevs and UTF-8

For writing texts on spectroscopy I would like to use abbrevs for common notations for spectral lines. However, the method outlined in the documentation for defining abbrevs with C-x a l or C-x a g ...
0
votes
1answer
14 views

Emacs (ipython) inferior python shows strange input numbers

In emacs, I use ipython in the inferior python mode with config: (setq python-shell-interpreter "ipython" python-shell-interpreter-args "--simple-prompt -i") When I edit my .py file, without any ...
0
votes
0answers
11 views

emacs ispell looks for wrong language

Hi I am a little bit confused, because I think that I have already managed to make ispell work on my macOS 10.15.4 and emacs 26.3, but when I tried it I got an error that emacs cannot find ispell. ...
1
vote
1answer
11 views

visit new file; enter shell script text; without saving/reloading, fontify the buffer to sh-mode

The title of this question basically says all. Visit a new buffer, let's say 'foo'. Enter shell script text in the new buffer, let's say "#!/bin/sh". How can I now set the mode to sh-mode and ...
2
votes
1answer
17 views

Offsetting successive frames

In my init.el I have the below setting for the initial frame position: (setq default-frame-alist '((top . 80) (left . 300) (width . 85) (height . 45))) When I open a file in a new frame, it ...
2
votes
0answers
9 views

SQL comint history saves spaces are \40

When accessing a database through an inferior process (M-x sql-msql) the history for the current session history (M-p/n) works Ok. But when restoring history entries from a previous session the string ...
0
votes
0answers
11 views

AucTex and PDF Tools Not Working

For the past few days I have been trying to get Emacs to update and display my PDF when I press C-c C-a, once saved. I save with C-x C-s. But everything I have tried fails, including every other ...
0
votes
1answer
25 views

How do I associate a file such as git's `COMMIT_EDITMSG` with a specific mode?

I was doing following solution for markdown files: How do I associate a file extension with a specific mode? (autoload 'markdown-mode "markdown-mode.el" "Major mode for editing Markdown files" t) ...
0
votes
0answers
12 views

How to prevent a file show up for a second when emacsclient starts?

I am using emacs-daemon. When every I re-start my daemon and do C-x C-b my Buffer List seems always full. Later, when I start my emacsclient for a seconds(like a fast flash) it shows a file that ...
0
votes
1answer
16 views

Need help with JavaScript `{` indentation

I'd need some guidance with adjusting my indentation settings for js-mode (JavaScript). It should basically look like C/C++'s Stroustrup mode. Most of it works as expected, however there are some ...
2
votes
1answer
43 views

(void-function closure) with Magit

I have Magit installed and it used to work fine. However of late, I am running into the following error when I run magit-status. Turning on magit-auto-revert-mode...done run-hooks: Symbol’s function ...
0
votes
0answers
10 views

Gnus : some RSS feed are empty

I can add a RSS feed to Gnus using G R, then putting the URL to the feed and browse the contents. However, it does not work for one feed in particular, which is empty atfer restarting gnus. The ...
1
vote
0answers
22 views

Activate doom mode line theme on non doom theme

I would like to use a non doom theme on Emacs but I like the doom mode line. The problem is if I use a non doom dark theme, say Charcoal-Black, and activate doom mode line, then doom mode line is ...
0
votes
1answer
35 views

How to highlight a single word in comments, which matches a function call?

While there are packages that handle this, I would like to highlight a single word in source code comments, using for example the warning face, when a function call returns t, using the word as input. ...
0
votes
1answer
8 views

How to run custom scheme written in node.js using readline in emacs?

I have Scheme interpreter written in JavaScript that run on top of Node.js the problem is that when I run run-scheme and I enter something it give double echo: lips> 10 10 10 lips> if I run ...
1
vote
1answer
10 views

Cannot change cursor type on Windows 10

I've used emacs on Windows 10 for a year. Recently, my "box" cursor in emacs has become a thin vertical line. I have tried setting the variable "cursor-type", but this no longer seems to have any ...
2
votes
2answers
35 views

Send multiple emails using Gnus?

I want to send multiple emails from Gnus. I have over 1000 addresses. I have found a great solution here: https://lists.gnu.org/archive/html/help-gnu-emacs/2014-04/msg00584.html (defun message-send-...
0
votes
1answer
9 views

How can I run imenu in all project files?

Is there any package which will allow to run the imenu in all project files of a current mode? More specifically I have a Go project defined by projectile and I would like to search for a symbol in ...
0
votes
0answers
21 views

Recovery from accidentally huge operation

I accidentally typed C-u 800000 ι, and now EMACS hangs and my fan is spinning. How do I most effectively recover from this? I did try C-g, which did not work. pkill -USR2 emacs stopped my fan, but ...

15 30 50 per page
1
2 3 4 5
371