All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
3 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 different for each ...
1
vote
0answers
8 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 ...
9
votes
1answer
159 views

How comment out a variable line in a local variable list

In a python file I have # Local Variables: # python-shell-interpreter: "python3" # python-shell-virtualenv-path: "~/.virtualenvs/datascience" # leo-python-args-to-send: "-f fqanalysis.txt" # End: ...
3
votes
2answers
54 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 ...
2
votes
1answer
15 views

Difference between apply and funcall

(describe-function apply) says: apply is a built-in function in ‘src/eval.c’. ...
0
votes
0answers
6 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 ...
1
vote
1answer
22 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] ...
2
votes
1answer
41 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. ...
1
vote
0answers
10 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 ...
0
votes
2answers
969 views

Emacs 27 MELPA connection failure on macOS

I have been trying to install packages ivy, counsel, and swiper on Emacs 27 prelude. Starting Emacs results in the following error: Warning (initialization): An error occurred while loading ‘/Users/...
0
votes
1answer
22 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 ...
1
vote
1answer
31 views

Expanding current column does not work as expected with a width cookie

From the manual: C-c TAB (org-table-toggle-column-width) Shrink or expand current column. If a width cookie specifies a width W for the column, shrinking it displays the first W visible ...
0
votes
0answers
17 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
0answers
5 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 ...
0
votes
0answers
9 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
1answer
14 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) ...
0
votes
1answer
22 views

window-configuration-change-hook false positives from desktop-mode

I'm trying to use window-configuration-change-hook in a package to perform some action when a buffer becomes visible for the first time. It works, however when starting Emacs, desktop-mode calls ...
0
votes
0answers
22 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". ...
0
votes
1answer
26 views

Is it possible to use whitespace-mode without specyfing a background (or foreground) color?

I like having non-breaking spaces and a few other characters represented in my buffer as visible characters. The problem I have is that whitespace-mode seems determined to set the background color. In ...
4
votes
1answer
130 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?
19
votes
2answers
5k views

how to markup a quotation?

How do I specify a quote in org-mode, so that it is rendered nicely in github? In markdown it is rendered like so: Two things are infinite: the universe and human stupidity; and I'm not sure about ...
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 ...
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 ...
1
vote
1answer
50 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?
0
votes
1answer
13 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?
0
votes
1answer
18 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 ...
2
votes
1answer
38 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 ...
1
vote
1answer
31 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 ...
3
votes
3answers
218 views

Quickly inserting a single Greek letter

How can I make it so that H-g followed by a gives an alpha etc.?
0
votes
0answers
10 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 ...
0
votes
1answer
25 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 ...
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 ...
2
votes
3answers
41 views

Why multiple-cursor ask me on every line? How avoid this?

emacs 26.1, multiple-cursor https://github.com/magnars/multiple-cursors.el Here my custom Elisp function that add some number(by default 1) to number. (defun increment-number-at-point(number) (...
0
votes
0answers
12 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
2answers
45 views

How increment specific value in text [duplicate]

windows 10, Emacs 26.1 Suppose I has the next text [ { "id": 1, "finished": 1573550444.4444, "orgn": 17 }, { "id": 1, "finished": 1573550444.4444, "orgn": 17 }, { ...
0
votes
1answer
20 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?
0
votes
1answer
11 views

Activate personal configuration to the config with load-file and require

I created personal my-config in .doom.d and have 'my-org-agenda` etc within it. #+BEGIN_SRC shell :results output tree ~/.doom.d | head #+END_SRC #+RESULTS: #+begin_example /home/me/.doom.d ├── ...
0
votes
1answer
125 views

Sometimes Emacs gets stuck with non-working capslock key

I'm using Emacs 26.1 on Windows 10. Sometimes, the capslock key stops working: The key is activated but typing letters does not result in capital letters being inserted into a buffer. It works with ...
0
votes
1answer
54 views

Assign buffer-name to variable

I'd like to write Elisp code that compares text character by character between two buffers. To do that, I need to first assign buffer names to the variables source-buffer and target-buffer ...
1
vote
3answers
56 views

Automatic periodic reload of all orgmode agenda files

I use about 15 orgmode agenda files, and a number of them I use passively only. Examples are my wife's agenda converted from Google calendar, a work agenda from Outlook and a list of git commits (...
0
votes
1answer
22 views

Why isn't the Evil global motion map used in Info mode?

I'm having a problem where it appears Emacs is not looking at keybindings set in my evil-motion-state-map. Below is my entire init.el. I start with an empty .emacs.d directory and only install evil. ...
5
votes
1answer
415 views

when to use defer in use-package?

Quoting from use-package If you aren't using :commands, :bind, :bind*, :bind-keymap, :bind-keymap*, :mode, or :interpreter (all of which imply :defer; see the docstring for use-package for a brief ...
0
votes
1answer
16 views

wrong-type-argument from insert yank

I'm looking for ways to get the last copy from the kill ring in Emacs. I run (insert (yank))[cursor] with C-x C-e and I get this *Backtrace*: Debugger entered--Lisp error: (wrong-type-argument ...
0
votes
1answer
10 views

How to solve GPG problem on Windows 10?

I'm having problem with GPG on emacs. It keeps saying Failed to verify signature archive-contents.sig: No public key for [some_weird_code_here] created at [date_here] using RSA Command output: gpg:...
0
votes
1answer
15 views

How to turn off Latex/MathJax buffer symbol conversion in org-mode

Whenever I write, say, \Rightarrow inside of $$, I immediately see the actual right-pointing arrow substituted in. Unfortunately, this does not travel well between GUI-based Emacs and Emacs started -...
0
votes
1answer
14 views

Custom sorting of agenda (by tag)

Is there a way to customize how tags get sorted in org-agenda weekly view? I don't like the default which is sorting alphabetically (within tasks of the same date/priority). It would be more useful ...
0
votes
1answer
25 views

How create custom function access only from ONE el file?

Emacs 26.1 In my file custom_functions.el (defun increment-number-by-one-at-point() (interactive) (increment-number-at-point-private 1)) ;; Increment number at point (defun increment-number-at-...
2
votes
1answer
90 views

can I use .dir-locals.el to set a default mode for files, and still allow dired?

I have a directory that is all little shell code snippets for being sourced. Tried creating an auto-mode-alist, that does not seem to be effective, so tried creating a .dir-locals.el thusly: ((nil . ...
0
votes
1answer
27 views

Org mode 9.2.6 - Org agenda - match tags/prop/todo query hangs

After typing a keyword the command just hangs, regardless of the query. The trace is as follows: Debugger entered--Lisp error: (quit) org-add-prop-inherited("qpct") #[257 "\300!\262\301!\207" [...

15 30 50 per page