# All Questions

17,573 questions
Filter by
Sorted by
Tagged with
2 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-...
7 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 ...
13 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.
23 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 ...
3 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 ...
19 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-...
22 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. ...
42 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 ...
17 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 ...
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 ...
15 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 ...
13 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 ...
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 ...
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?
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 ...
25 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-...
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 ...
22 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 ...
15 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 ...
6 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 ...
33 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 ...
25 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 ...
37 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 ...
19 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 ...
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/ {...
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 ...
74 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?
13 views

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 ... ) ...
16 views

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: ...
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 ...
8 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 '...
30 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 ...
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 ...
23 views

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 ...
28 views

### Frame number in frame title - how?

I want to use two frames. One on virtual desktop #1 and the other one on #2. I (have to) work on Windows so I would like to see a frame number in the frame title, since Windows lacks a permanently ...
5 views

### CentOS 7 emacs 24.3.1 gnome 3.28.3 frozen while loading file other than home directory

If I open file at home directory there will be a warning: (emacs:49027): GLib-WARNING **: 10:34:31.190: In call to g_spawn_sync(), exit status of a child process was requested but ECHILD was ...
22 views

### Insert Org or Markdown code blocks with Babel in org-mode?

In org-mode, if I do something like this: #+begin_src org ## What does this PR do? - Updates the Dockerfile to make the dev service connect to a shared network at startup - Registers the ...
25 views

### How to resolve TRAMP spamming empty messages

Connecting to a remote machine with tramp that may have VC (subversion) related files, I tend to see a large number of repeated messages in the *Messages* buffer. For example: Type "q" in help ...
27 views

### Copy results of org-export directly to clipboard

I often find myself doing this: Selecting a region of text in an org file. Calling org-md-export-as-markdown. Selecting the converted text in the temporary buffer (can't just do mark-whole-buffer ...
19 views

### Show a prompt dialog with a timeout

As expected, the following dialog box expires after five seconds under Linux: (progn (setq last-nonmenu-event nil) (y-or-n-p-with-timeout "Proceed? " 5 nil)) However, it lasts forever under ...
33 views

### Display only not-DONE-yet items in agenda

I have several agenda commands set up, one of which gives me a block agenda, others give me specific searches. Since many of my TODOs are hanging around inside of projects, where I only archive the ...
13 views

### viewing Parents only, no Children, in agenda

I would like to use agenda to generate a list of currently active projects. An active project (for me) is an entry tagged with wip and is not a TODO entry. I would like the list to have only the top-...
37 views

### Enable org-agenda-clockreport-mode in TODO agenda view

Is there any way to enable clockreport-mode in a TODO-agenda view? I mainly use this view because I don't really set dates for my tasks so the agenda-view is not really helpful for me (I'm using ...
14 views

### How to capture at an arbitrary date

If I do M-x org-capture, then delete the timestamp next to 'entered on', say 2019-12-09, then replace it with an abitrary one using C-c C !, say 2019-11-29, then C-c C-c to save, here's what happens: ...
20 views

### Using auto-insert and yasnippet to insert variables into template

I've been reading this and this, trying to figure out how to have an org-mode in-buffer settings template such as this: # # -*- mode: org -*- # # -*- coding: utf-8 -*- #+TITLE: \$1 #+AUTHOR: (user-...
32 views

### File tags prevent autocomplete of global tags

I amended .emacs as shown below. Then M-x load-file ~/.emacs. What I want to do in test.org is add MEntal tags to each of the two entries, for example Read and Reminder, respectively. Using the column ...
10 views

### What are the key bindings relevant to week-genda view?

Reminder: one enters the week-agenda view by typing C-c a a. Only serendipitously did I find out that ! toggles "deadline inclusion". How would I find the description of similar key bindings from ...
14 views

### emacs-jupyter debugging and realgud

emacs-jupyter supports pdb by displaying the pdb prompt in a minibuffer. I have a feeling that I should be able to connect to it with realgud:pdb, similarly to how I can realgud:track-mode-enable in ...