All Questions

4
votes
1answer
23 views

Default file extension for `dired-do-rename`

I am wondering how to make renaming files in dired to use the current file extension as the default. For example, imagine I run dired-do-rename on the file foo.bar and then type foo2 and press Enter....
0
votes
2answers
125 views

org-mode + evil: insert heading, set cursor to line ending, and change to insert mode?

I am using spacemacs which contains org-mode and evil. Whenever I insert a heading (either org-insert-heading, org-insert-heading-after-current or org-insert-subheading), I have to do two extra ...
3
votes
1answer
126 views

Breaking changes to eieio in Emacs 27?

Q: are there breaking changes to eieio in Emacs 27? I just upgraded to the Emacs 27 snapshot, and I'm getting a peculiar break in code that works in previous versions of Emacs. walkthrough Here's a ...
1
vote
1answer
65 views

Determining the string formats for datetime-timezone

When loading a .log file I get the message Warning (emacs): Failed to determine system timezone; consider customizing ‘datetime-timezone’ variable Going to the customization menu, the options are ...
2
votes
2answers
51 views

AUCTeX, caching document classes over an Emacs restart

The first time I create a new LaTeX document* in a new instance of Emacs AUCTeX scans my TeXLive installation to find all the available document classes . This scanning, due to the complexity and ...
3
votes
7answers
2k views

cider-jack-in: Symbol's function definition is void: clojure-project-dir with closure-mode installed

M-x (cider-jack-in) cider-jack-in: Symbol's function definition is void: clojure-project-dir lein run "Hello World!" cat ~/.lein/profiles.clj {:user {:plugins [[cider/cider-nrepl "0....
3
votes
2answers
75 views

Open org-mode links to info in different window?

I was wondering if anyone knew of a way to open links to info pages (Emacs manual) from org-mode without changing the current buffer to that info page? The reason I would like to do this is because I ...
0
votes
1answer
22 views

Is there a way to calculate rows on a “rolling” basis?

Rolling formulas are very common in accounting, for example, carrying forward a monthly balance based on expenses. So say you had a table with month, beginning balance, fixed income, expenses, and ...
1
vote
1answer
56 views

How can I configure the tab width for TCL files

I set all tab-width parameters and indent parameters to 2, but Emacs always uses 8 for the tab space when I press the TAB key at the beginning of a line, if i opened one bracket. How can i set the ...
0
votes
1answer
51 views

How to remove email address from local database in mu4e?

I use mu4e to read and write email. One email address that was in the LDAP server before no longer exists, but it still shows and auto-completes in mu4e. How can I remove that address from the local ...
5
votes
2answers
1k views

Org mode: Using todo-items or checkboxes in tables

I have several items that I need to perform the same tasks on. To get an overview, I wanted to use a table, where the columns would show me how many are done, something like this: +------+------------...
0
votes
0answers
37 views

Emacs displays Hebrew text incorrectly

I have a number of org-mode/text documents that contain English and Hebrew text. They are scholarly papers. However, the Hebrew text in Emacs is not displayed correctly. I am using Dejavu Sans Mono as ...
1
vote
0answers
34 views

Storing and Loading Non-Static/Multiple Configs

I'm writing an emacs wrapper to a set of scripts that require a lot of config settings to run. These can be variously environment variables, command line parameters and so forth. They should be user ...
2
votes
3answers
364 views

How do I insert a heading above the current one in org-mode?

I'm currently running Spacemacs+evil and pressing C-RET calls evil-org-org-insert-heading-respect-content-below, which inserts a a heading below the current one. I couldn't find a dual/mirror command ...
8
votes
1answer
596 views

org-mode captions not supported for EXAMPLE blocks?

Please consider the following, self-contained .org file MVE, which I hope is self-explanatory: #+OPTIONS: toc:nil Figure [[captions-work-for-src-blocks]] shows that captions are correctly exported ...
1
vote
1answer
261 views

Setup a local key for help in tide

I'm trying to setup the F1 key for documentation within typescript mode only. Here is what I got so far. (use-package tide :init ;; (add-hook 'before-save-hook 'tide-format-before-save) ;; ...
1
vote
0answers
24 views

How can I drag-and-drop an `org-mode` header onto the Mac desktop?

John Kitchin has a terrific video on modifying the default drag-n-drop behavior, going from the Mac Finder onto an Emacs buffer. I would like to implement the opposite behavior: dragging an org-mode ...
0
votes
1answer
32 views

How to navigate stack frames in Emacs debugger?

I'm trying to debug the infamous Unrecognized entry in undo list undo-tree-canary, and after having Emacs debugger triggered on error, I want to move back and forth between stack frames and to examine ...
0
votes
2answers
30 views

How to suppress output of link with elisp function in org-mode?

When using elisp function in the link in org-mode, like [[elisp:(func)][text]] after clicking the link, the function itself will be printed in *Message* buffer. How should I prevent it from being ...
0
votes
2answers
43 views

Save place in files but don't move the cursor to the saved position automatically

I'd like to have a command that moves the cursor to the last position it was in when I left the buffer (either by killing it or by killing Emacs). I know I can use saveplace.el to save the position ...
1
vote
2answers
52 views

How can I edit my function to work to kill lines not matching RegExp [duplicate]

I made a function to filter unimportant lines from a CSS file I copied. I only want lines with the words "color" and "background" to remain in my buffer after the point the function is run. When I run ...
2
votes
1answer
27 views

bookmark-alist-from-buffer: Cannot read definitions in bookmark file: Invalid read syntax: “#”

The above error occurs when I try to set a bookmark on a help buffer. The bookmark looks like this: #1=(#("Some bookmark" 0 3 (bmkp-full-record #1#)) (buffer-name . "*Help*") (visits . 0) (time . #2=(...
11
votes
3answers
1k views

Customizing indentation in makefile mode?

In my makefiles, I prefer the following indentation for continuation lines: FILES:= \ file1.cpp \ file2.cpp \ fileYetAnother.cpp LIBS:= \ ...
1
vote
1answer
233 views

How to edit and return value of string in Emacs Lisp?

Here is what I wish to achieve: (defun rcd-edit-value (value) (let ((file (make-temp-file "rcd-db-" nil ".txt" value))) (find-file file) (string-from-file))) (defun string-from-...
1
vote
2answers
514 views

How to turn off mac os specific keyboard shortcuts in emacs?

I'm trying to quit the habit of using s-v, s-c and similar keyboard shortcuts for copy paste in Emacs on mac os/osx. I'd like to turn them off but can't find any information on how to do this. There'...
3
votes
1answer
333 views

Can't install elm-mode using MELPA

I'm trying to install elm-mode using MELPA. When I try to install it I get an error message: https://melpa.org/packages/dash-20150829.433.el: Not found I can install other things, bu not this.
3
votes
1answer
52 views

How to diff one file against another branch with Magit

I want to see the differences of a file in another branch. With git I can simply do: git diff otherbranch: path-to-file. In magit this seems trickier as the file may not be dirty and not showing up ...
2
votes
1answer
68 views

How to move windows?

How can I move a window from being a horizontal split down below all other windows to being a vertical split panel on the left? I don't want to move buffer contents - I want to move the actual window.
1
vote
1answer
46 views

How to return focus to dired window after killing buffer opened from dired?

Sometimes I use dired to view or edit several files in one folder, one after the other. Dired is open in one window, and I open the files in another window by typing o in dired. When I finish with one ...
1
vote
3answers
49 views

Why do local-set-key and local-unset-key not work interactively? [duplicate]

My local-set-key and local-unset-key, used interactively M-x ..., are not working as expected, namely to bind or unbind a key for a specific buffer. Case in point: I am editing a LaTeX (.tex) file ...
0
votes
0answers
31 views

wrong cwd in python mode

When i do C-c C-c on a python module, it leads to *Python* buffer with Inferior Python : run Shell-Compile mode. Suppose the correct cwd is /x/y/z/ The problem is when I print os.getcwd(), i get ...
1
vote
0answers
29 views

Reading frame configuration from file

I'm just trying my hands on emacs lisp. So far I've had some luck, but I'm stuck trying to load my frames configuration into a list. Here's what I'm trying to do... I am saving frames configuration (...
4
votes
1answer
338 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 ...
0
votes
1answer
19 views

Updating pyenv when switching to a Python buffer

I use pyenv to maintain my python versions and virtualenvs. I really like the way you can create a local .python-version for each project, pointing to the version I need. I use pyenv-mode which allows ...
3
votes
1answer
84 views

Minimal working example of Cask project with ert-test?

I want to use Cask for development, but have trouble getting it set up. Could anyone please show a minimal example with one package file, one function and one ert-test and which commands you need to ...
0
votes
0answers
34 views

Why AUCTeX/pdflatex show me help in Japanese?

I had this error message displayed to me by AUCTeX (already corrected using \ddot{\boldsymbol x}) ERROR: Extra }, or forgotten $. --- TeX said --- <recently read> } l.51 \[ \boldsymbol M\ddot\...
0
votes
1answer
28 views

How could i read all my unread / new mail from different accounts in one group or topic?

i want to read all my unread /new messages from different IMAP accounts in one Gnus group. As far as i read in the manual, it could be possible with topics or virtual groups. But i do not understand ...
0
votes
0answers
16 views

How to use ack options in Spacemacs?

From the command line, I searched using ack with the ignore-case option: ack -i bragg That worked. How to use ack options in Spacemacs? The -i option did not work with function spacemacs/search-ack:...
0
votes
0answers
25 views

use-package do not bind in latex-mode-map

this is a part of my init file (use-package tex-site :ensure auctex :mode ("\\.tex\\'" . latex-mode) :bind (:map LaTeX-mode-map ("<f5> <f5>" . TeX-command-save-buffer-and-...
1
vote
1answer
30 views

How to save font alterations?

Let's say I have this in the buffer: 'BE BOLD' I select it and type Alt-o b. It is now displayed as 'BE BOLD' I Save, quit, reopen: The font change is lost. How to keep the font change, please?
3
votes
1answer
81 views

Matching repeating tasks in org-agenda search

I am trying to create an agenda search that matches on the DATE property of certain entries. This works fine for one-off tasks/events; however, when I have a repeating task whose DATE is of the form &...
28
votes
8answers
4k views

Emacs on a tablet?

Q: can Emacs be installed/used on a tablet with a minimum number of tears? I had been under the assumption that Emacs ran on basically everything. However, after some poking around, it looks like ...
7
votes
2answers
100 views

Is there a hook that runs for all read only buffers

I want to enable show-trailing-whitespace for editable file and disable show-trailing-whitespace for read only files. I've tried (defun my/read-only-whitespace () (setq-local show-trailing-...
5
votes
2answers
62 views

What is a good strategy to locating function arguments in a buffer?

I'd like to create a few routines for manipulating function arguments in buffers, which of course requires me to first locate the arguments. Suppose that I'm operating on a buffer with a programming ...
1
vote
0answers
24 views

Emacs plugin to browse Julia documentation, at point or textual

It is quite annoying that I have to leave emacs to browse Julia documentation. Are there any nice plugins to get the documentation at point or that provides a nice direct textual interface to the ...
0
votes
1answer
51 views

More detailed org-capture into org-table template?

(Disclaimer: I know this may seem like a very specific question. But: I haven't found the answers to similar questions to be close enough to what I need. I hope to get an answer that is easily ...
0
votes
1answer
23 views

Does orgmode have the option to restrict the task states or categories in the editing page?

Is there a way to restrict the TODO types or categories in the editing page? I know about filtering the agenda view, but I need the option to see only some tasks states in the editing page, such as ...
1
vote
1answer
413 views

Activating a conda environment in emacs

I've got code that needs python 2.7 (and other environments) C:\Users\Me>conda info -e # conda environments: # base * C:\Program Files\Anaconda3 python2 C:\...
1
vote
1answer
55 views

Configuring lsp-mode to run elm-language-server

I'm trying to run lsp-mode for elm development and according to lsp-mode elm is supported. Also according to that link, I should only have to clone the elm-language-server repository, run npm install ...
1
vote
1answer
38 views

Avoid spurious buffers with helm-find-file

I have C-x C-f bound to helm-find-files. Mostly this works really well, but if I hit TAB when there are no completions for an item (most often because I've fumble-fingered the directory or filename ...

15 30 50 per page