All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
10 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
20 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
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 ...
0
votes
0answers
12 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 ...
0
votes
0answers
21 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
1answer
26 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 ...
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
0answers
18 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
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
0answers
20 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 ...
1
vote
0answers
9 views

Changing the width of the columns of the bookmarks display?

I love the bookmarks features of Emacs. I have managed my bookmarks kind of hierarchic. But that leads to longer bookmarks, which now don't fit into the column any more. Is there a way, to enlarge ...
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
1answer
26 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
8 views

Regular expression gives different results as variable and as literal

In the Emacs *scratch* buffer, I get different results when I use the same regular expression as a variable compared to a literal: (setq splitter-string "9:20") "9:20" (string-match "[0-9]?[0-9]:[0-...
0
votes
0answers
5 views

Line of error in Emacs Regression Test (ERT) framework

I am refactoring some code and adding doc-tests as suggested here. The previous iteration passed the tests. Now running ERT in batch mode with eemacs -batch -l ert -l org-clock-split.el -f ert-run-...
1
vote
1answer
30 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/...
1
vote
0answers
11 views

Indenting LaTeX code for \if \else \fi statements

This is related to this Emacs.SE question. I use the code from the answer: (setq LaTeX-begin-regexp "\\(?:begin\\|if@\\)\\b") (setq LaTeX-end-regexp "\\(?:end\\|else\\|fi\\)\\b") (defun LaTeX-indent-...
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 ...
0
votes
1answer
16 views

auto-fill-mode without automatic indentation

Is it possible to prevent auto-fill-mode from automatically indenting new lines according to the previous? I would like new lines to begin at column 0 regardless of the previous line's indentation.
3
votes
1answer
28 views

Why does `make-symbol` work in macro expansion, just as `gensym` works?

In the dash library I noticed the use of make-symbol to avoid symbol conflicts during macro expansion. (defmacro --filter (form list) "Anaphoric form of `-filter'. See also: `--remove'." (declare ...
0
votes
0answers
4 views

CIDER inspector unable to refresh a modified atom

With the CIDER inspector I'm able to view the contents of an atom. I can do C-u C-u C-c M-i and input the atom with an @ prefix and the value displays correctly. Now, if I keep the inspector window ...
0
votes
0answers
20 views

Hit a wall setting up company-irony with weird project structure/build system

Overview I working on an OS project. It only uses header-files provided by the project code-base. The CMake meta-build, and ninja build system seems to be unrecognized by compilation and code-...
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. ...
2
votes
1answer
44 views

How do I install An Introduction to Programming in Emacs Lisp? [duplicate]

This may sound odd, but when I type C-h i m Emacs Lisp Intro -- it's not there. I'm on Ubuntu 19.10 with Emacs 26.3. I tried apt-get install emacs-lisp-intro as the EmacsWiki said, but there's no such ...
0
votes
0answers
18 views

How could `(package-initialize)` affect the behavior of `org-open-at-point`?

Up until this afternoon, I was able to run org-open-at-point on something like [[file:/Users/apc/Desktop/test%20paper.pdf]] and open the file named "test paper.pdf" in my Desktop. But I'm no longer ...
0
votes
0answers
9 views

setting auto-revert-check-vc-info causes auto-revert error messages

I have this setup to enable viewing the correct branch name when switching or creating new branches in the mode-line: (setq auto-revert-check-vc-info t) However, I started seeing some error ...
1
vote
0answers
18 views

Add whitespace as indentation with `indent-region`

When using indent-region, emacs will indent code and leave bank spaces untouched. It seems to me that the majority prefer to delete whitespace. However I prefer white space indented with the code. An ...
0
votes
0answers
14 views

How to stop org-batch-store-agenda-views from writing to kill-ring

I have the following in my config: (defun export-agenda () "custom export of agenda for mobile use" (eval '(org-batch-store-agenda-views ;; w/o diary org-agenda-include-diary ...
0
votes
0answers
6 views

isearch in kmacro-step-edit-macro

I'm trying to edit a keyboard macro using kmacro-step-edit-macro. The macro starts by isearching for a word. C-s ;; isearch-forward binary_function ;; self-insert-command * 15 RET ...
0
votes
0answers
14 views

Change default colors in f90-mode [duplicate]

Could you let me know where the default colors in f90-mode are defined and how to change them?
3
votes
1answer
48 views

How to replace the buffer without slowing down the undo system?

Say I have a command that operates on the entire buffer. The simple solution is to: Run the command taking the entire buffer as input. Store the output. Clear the current buffer. Insert the new ...
1
vote
1answer
32 views

Enabling `flyspell-prog-mode` starts `flyspell-mode` instead

I've been playing with flyspell lately and with my recently established setup for spell-check, I wanted to enable it for all modes. I found that flyspell-mode and flyspell-prog-mode are best for text-...
0
votes
1answer
23 views

Prepend to block of text, but ignore blank lines

How to add the string 'export ' to the beginning of each line of this text, with emacs: RBENV_VERSION="2.n.0" AUTHORIZE_NET_API_LOGIN_ID=example AUTHORIZE_NET_TRANSACTION_KEY=example # Google ...
3
votes
1answer
32 views

Modify emacs calendar starting week number

I want to change emacs default calendar week number so that it starts at a manually preset date. Normally the year is broken into 52 weeks and week 1 is the one that contains the 1st of January. I'd ...
1
vote
0answers
16 views

Emacs `captain-mode` auto-capitalization in comment

I installed captain-mode, and it worked as expected in org/text modes, but not so quite in programming modes' comment lines. The problem is it can auto-capitalize the first word from the second ...
0
votes
0answers
8 views

Conditional CIDER breakpoint not working in recursive functions

I'm using CIDER for Clojure programming. I've been playing around with the CIDER debugger lately. I wanted to use the conditional breakpoint facility with some simple recursive function, such as ...
2
votes
1answer
38 views

how to display target of an org-mode link in the echo area or as tooltip?

In org mode when I hover over a link, I get a tooltip that shows the target of the link. But I'd like to see the target when I just move point onto a link, either as a tooltip or in the echo area. For ...
0
votes
1answer
26 views

How to count regexp in a string and use that number in replacement

In my LaTeX code I want to replace these strings: \left.\left.\left. \left.\left. \left. with: \left.\left.\left. \mycommand{3} \left.\left. \mycommand{2} \left. \mycommand{1} where the argument ...
1
vote
2answers
40 views

Omit ~ before the \ref command (with RefTeX+AUCTeX)

The default behaviour of C-c ) is to insert \ref and prefix it with~. I don't need the tilde after \S (i.e. I need the output to look like \S\ref{label}, rather than \S~\ref{label}). Is there a short ...
1
vote
1answer
20 views

roll back org-mode version

I have a scimax based configuration and my source block fontification is broken. I suspect it has to do with the release of Org-mode 9.3 which I am currently using. Thats why I am trying to roll-back ...
2
votes
0answers
10 views

emacs pinentry in minibuffer prompt blocks other frames?

I use Emacs in a terminal to read email using mu4e, mbsync. I have PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/machine imap.gmail.com login rudolf.sykora@gmail.com/ {...
1
vote
1answer
29 views

Insert “indent” regardless of mode

When typing docstring in python-mode, I always have issue with indentation. If I am at this point (| is the cursor): def fn(): """ Args:|""" If I press Enter, the cursor will move right below ...
6
votes
2answers
75 views

Can emacs show formatted backtraces?

When getting an Elisp error and trying to debug the problem, the backtrace buffer is quite hard to read with its long lines. Is there a way to get a pretty-printed backtrace buffer?
0
votes
0answers
13 views

use-package deferred loading for extensions not in :mode

When moving to use-package, I'd to replace (require 'markdown-mode) (add-to-list 'auto-mode-alist '("\\.md\\'" . markdown-mode)) with (use-package markdown-mode :mode "\\.md\\'" :config ... ) ...
0
votes
0answers
16 views

bad signature “dash-2.12.0.tar.sig”

I am getting the following error while startup Failed to verify signature dash-2.12.0.tar.sig: No public key for 066DAFCB81E42C40 created at 2019-09-21T23:24:49+0530 using RSA Command output: gpg: ...
0
votes
2answers
50 views

How to cycle among all live buffers?

Emacs 26.2 M-C-L is bound to switch-to-next-buffer. I have many files open but it's simply flopping between two. On my old XEmacs the same key cycled through all of them (and S-M-C-L did so ...
0
votes
0answers
9 views

Flymake log questions

I have the following in my .emacs: (use-package flymake :init (remove-hook 'flymake-diagnostic-functions 'flymake-proc-legacy-flymake) (add-hook 'emacs-lisp-mode-hook #'flymake-mode) (add-hook '...
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
11 views

How to use ispell-word to correct a word immediately without prompting for multiple options?

Since the first option is the right one when fixing a common misspelling. Is there a way to make ispell-word correct the spelling of a word to the first suggestion instead of prompting from a list of ...
1
vote
0answers
23 views

org-archive-location ignore heading cookie

I have an org file that looks something like this: * Tasks ** TODO A test task * 2019 ** 2019-12 December *** 2019-12-10 Tuesday **** Day planning ***** Tasks for today [0/1] ****** TODO Another ...

15 30 50 per page