All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
8 views

How to make ansi-term wrap lines instead of adding newline so it can fit the window?

See the screenshot. I typed one long line in the buffer, didn't hit enter but cursor is already on line 3. This causes multiple problems, eg. when I copy the output of a command from ansi-term to ...
1
vote
1answer
28 views

Capital A Meaning in Emacs Syntax?

I'm familiar with M being the modifier key in Emacs syntax but I'm reading the instructions for a package and it is telling me to prepend the modifier with A. A-M-n I've tried a few different things ...
0
votes
2answers
18 views

I want to simplify repeated calls in my init.el file

I've got a lot of: (desktop-save-mode 1) (show-paren-mode 1) which I'd like to collapse into: (mapcar (lambda (fn) (fn 1)) '(desktop-save-mode show-paren-mode)) but I get an error: Symbol’s ...
0
votes
1answer
15 views

How to open an org presentation?

I have a presentation I wrote using presentation mode a few years ago. Now I'm trying to open it and I forget how to do it. I'm trying to run emacs command presentation-mode but nothing is found. I ...
1
vote
1answer
17 views

Temporarily restrict editing to whitespace only

Sometimes I make whitespace cleanups to source code. I'd like to be certain that I do not accidentally introduce real code changes (let us assume that the programming language is one where removing ...
1
vote
0answers
8 views

Is it possible to see the cursor of other emacsclients?

I'm trying to run Emacs server in order to collaborate on org files in our office. emacsclient makes it quite easy to have everyone connect to the same instance of a file and we can see real time ...
0
votes
0answers
15 views

Enable speedbar in “.el.gz” files?

When I navigate through `describe-function' to the source of a function, very often the buffer is visiting a file with a ".el.gz" extension. Often these files are multi-thousand lines, so a list of ...
0
votes
1answer
27 views

Text and backround colour with auctex has the same colour, how to change

In LaTeX mode with Auctex, I have a problem with \textbf and that is that the text inside the {} has the same colour as the background of the textbf field, as illustrated here: This is only a problem ...
0
votes
0answers
11 views

How to revert the new kill-region behavior?

(I'm using Emacs for more than 25 years, starting in version 18.58 I think) Recently Emacs received changes that make an old-time user quite desperate, and I wonder how to revert some of those ...
1
vote
1answer
13 views

Why can't I list the contents of Desktop on macos using dired?

When I do C-x C-f on ~/Desktop/ in macos Catalina, I get the following error. Listing directory failed but 'access-file' worked I can list the directory for just ~. I'm new to Emacs and know little ...
2
votes
1answer
21 views

org schedule entry when another transitions to DONE

Is there a mechanism to specify that a todo entry should be scheduled after some other Todo entry transitions to DONE? something like schedule 2d after completion of some other TODO entry or event. ...
1
vote
1answer
14 views

use .dir-locals.el to setup blacklist (based on projectile root) for ccls (c++mode server)

I use this setup to setup blacklists for ccls in my project: ( (prog-mode (ccls-initialization-options . (:index (:blacklist [ "^/Users/xxx/proj/dir1/" "^/Users/xxx/proj/dir2/(dir3|dir4)/"]))) ) How ...
1
vote
3answers
61 views

Buffer-local input history for read-from-minibuffer

I've been trying to create a command that, when run, calls another function (my-function) which reads from the minibuffer and does some processing on the input. I want the command history for this ...
0
votes
0answers
23 views

'propertize' function doesn't work with variables [duplicate]

I'm trying to swap background and foreground color. I wrote this code to set the background color of a line: (setq current-line (propertize current-line 'face '(:...
0
votes
1answer
13 views

Error: No word lists can be found for the language “en_US”

I am using GNU Emacs 26.1 on macOS Catalina. When I try to enable ispell or flycheck-mode I am getting following error: No word lists can be found for the language "en_US". => How could I fix this ...
1
vote
2answers
25 views

Can I Jump to bookmark using a pattern?

Using Spacemacs, if I SPC f r to search for recent files I am prompted for a pattern. I can enter e.g. a value of our which will match a file named Journal.org. However if I do C-x r b to jump to a ...
2
votes
1answer
42 views

Referring to a different table's cell value in org-mode

I'm doing some code estimating and have split my project up like so * Overview | Proposal | Best case | Likely case | ...
0
votes
2answers
43 views

What is #'eq and how does it differ from 'eq [duplicate]

I've seen a few snippets of code where symbols were prepended by #' instead '. like the following snippet (seq-count #'not (seq-mapn #'eq seq1 seq2)) What is the difference and why couldn't I just ...
0
votes
0answers
29 views

How to locate all unused Lisp functions / variables

I am converting a few old libraries into one new library using different names for all of the functions, macros, variables, etc. Some of the functions / variables will never be used, and I would like ...
0
votes
0answers
13 views

Conf[Unix] not indenting configuration file

I am having trouble trying to configure the conf[Unix] mode to do indentation. I have a hook that indents the whole file when I save the file: (defun indent-hook() "Indent before saving." (indent-...
2
votes
0answers
10 views

Org2Blog and Two Factor Authentication

new Emacs user here. I'm having trouble using org2blog to post to a client's WordPress site. The site has 2FA turned on, and won't let me post with it turned off. I got an application-specific ...
4
votes
1answer
124 views

Change scratch buffer to org mode by default

When I test some codes in scratch buffer, usually first set it as org mode manually. How could config it as 'org mode' rather than fundamental mode by default.
0
votes
0answers
13 views

Sharing helm-buffers-list between multiple windows

I use two separate windows in emacs, and when I use helm-buffers-list, it displays a list of files sorted with the most recently visited files near the top, however, this list is sorted differently ...
1
vote
0answers
20 views

Debugging slow find-file performance

Trying to figure out why find-file (C-x C-f) operations are taking a long time on Windows 10 with emacs 26.3. I tried to do profiling and got following results. - command-execute ...
1
vote
0answers
25 views

Automatic preview generation with AUCTeX

Right now, when using AUCTeX's preview feature, I have to manually refresh the previews after I change existing sources or write new text. I have to run preview-document every time, which is both ...
2
votes
1answer
50 views

Difference between apply and funcall

(describe-function apply) says: apply is a built-in function in ‘src/eval.c’. ...
1
vote
0answers
15 views

how to set a fill suffix?

I want to fill (wrap) long lines at n characters, ensuring that each new line ends with "///". (That is the "continuation character" for long lines in Stata code. So that something like this This is ...
1
vote
1answer
31 views

Is function `list` equivalent to using `cons` with a final cdr of `nil`?

I'm trying to explain Elisp to 5th and 6th graders and I tell them that (+ 1 2) evaluates to 3 and not (3). So if I do want something that evaluates to (3) would I just evaluate ((+ 1 2))? No! This ...
0
votes
0answers
14 views

Encrypt excerpts in org file (passwords only)

I keep project info in .org file together with passwords. When I share a screen it is annoying to show passwords in a buffer accidentally. I want to keep .org file in plain text format but mark some ...
0
votes
0answers
9 views

set-frame-size does not work on emacsclient

I have set up Emacs daemon on Windows 10. My Emacs version is GNU Emacs 25.3.1 I have some code in my init.el which resizes the frame size automatically when Emacs starts up. The code is ;; Select a ...
1
vote
1answer
22 views

How to bury *Ibuffer* when switching to another buffer?

M-x ibuffer Select a buffer Kill that buffer The *Ibuffer* buffer re-appears. How can I get it to behave more like a *Help* buffer, which is buried (dropped to the end of the "recently used" list) ...
3
votes
1answer
61 views

org-mode problem when exporting numbered items to odt

If I export an org mode document to odt that contains a combination of numbered items and paragraphs the exported document does not retain the correct numbering. For example, 1. Question 1 2. ...
0
votes
0answers
9 views

Org mode GPG buffer colors broken

After upgrading all packages with use-package, buffers with opened gpg encrypted org files don't show proper org mode colors, everything is black & white, like in fundamental-mode. The buffer ...
2
votes
2answers
24 views

Define key binding for a single mode (Fundamental)

In light that this may be a duplicate, but I did not find the answer to my question scouring this site. The default behavior of GNU Emacs appears to have electric-indent-mode enabled, which is fine ...
4
votes
1answer
144 views

C-x 3 open a new buffer to the left of the current buffer

When strike C-x 3, a new window and buffer will open to the right of the current buffer. How could set it open to the left of the current?
1
vote
1answer
29 views

`use-package` and `define-key`

I'm using multiple-cursors, setting it up with use-package. By default, when multiple-cursors mode is enabled, <return> is bound to multiple-cursors-mode. I'm trying to override that adding this ...
0
votes
1answer
18 views

font-lock-keywords weirdness

I am trying to modify pandoc-template-mode.el to deal with $$ which is an escape sequence for literal $ inside the Pandoc template. I have added the "\\$\\$" at the top but I still get bad font ...
0
votes
1answer
14 views

Preventing convertion of ASCII rules on org--html export

When you export to html, -- is converted to en-rule and --- to em-rule. Is it possible to prevent this?
2
votes
1answer
39 views

How are major modes and local keymaps associated?

The Emacs manual says: Major modes customize Emacs by providing their own key bindings in local keymaps.... Minor modes can also have local keymaps... Roughly, it seems to say: Major modes ...
0
votes
0answers
12 views

In spacemacs, how do I copy code from the history in python REPL to my window which has a python source code file open?

I'm new to spacemacs -- I'm using it as a Python IDE. I'd like to know if there is an easy way to copy lines from the history on a REPL back to the source-code window. The idea is, I prototype in ...
1
vote
0answers
17 views

Git status on modeline to indicate if behind remote?

Can I get Emacs to indicate on the mode-line whether a push is needed, i.e. whether the repo is out of sync with origin? I've already got it telling me if a commit is needed using vc-status, but that ...
0
votes
1answer
19 views

Commenting out/disabling file local variable for input method in AUCTeX

I have the following local variables defined in a XeTeX file. As you can see, the input method is currently set to Devanagari. This is inconvenient when I want to type Roman letters. I'd like a way to ...
0
votes
1answer
27 views

Building Emacs 24.4 without admin rights, ncurses dependency

I'd like to build Emacs 24.4 from source on a system where I don't have admin rights. When I run ./configure, I get the error: "The required function \'tputs' was not found in any library. The ...
0
votes
0answers
14 views

Using xref-pop-marker-stack with next-error?

When I use xref to jump to the definition of a symbol, I can retrace my steps using M-, (xref-pop-marker-stack). I would like to be able to do the same thing after jumping to results in compilation, ...
1
vote
1answer
32 views

Error in custom eshell function (exit and close window)

I got the below function from an article on howardism.org. Its purpose is to exit eshell and close the corresponding window. ;; GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.10) of ...
0
votes
1answer
22 views

Magit log: move cursor to the HEAD

While in the log buffer, is there a way to move the cursor directly to the HEAD commit?
1
vote
1answer
54 views

Updating magit today gives me invalid face attribute

Updating magit this morning I now can't start things up, getting: face-attribute: Invalid face attribute name: :extend Anyone know what could cause and (hopefully!) fix this?
3
votes
2answers
70 views

Selecting punctuation, namely, periods, commas, question marks, exclamations, etc. in Emacs

I use Emacs mostly for writing text not code. This involves a great deal of selecting, deleting and editing, as one would expect. By default if I move forward by a word in Emacs, Emacs ignores basic ...
1
vote
2answers
34 views

Org-mode add a property (e.g. effort) on the same row as my task (similar to priority and tags)

I'd like to show an additional property (e.g. EFFORT) on the same line as my tasks, so that it is always visible in both org-mode and agenda view. An example is below. Current display: TODO [#A] ...
0
votes
0answers
24 views

In a buffer with widgets how can I find out what function is called on a (link) widget

In a buffer with widgets how can I find out what functions widgets call? Let's say I position the cursor on a widget, I execute M-x widget-browse-at and know now that the widget is of class "link". ...

15 30 50 per page