All Questions

8
votes
2answers
3k views

Equivalent to --no-wait for emacs

The emacsclient program allows a flag --no-wait (abbreviated as -n) which will cause the emacs server to visit the specified file, and return immediately. emacsclient -n ~/.bashrc If I provide an ...
12
votes
1answer
671 views

How to run multiple versions of emacs for package development?

Is there a set of tools to enable testing a package on multiple Emacs versions. For example 24.4 is almost released. Can I install it and still safely test my package in 24.1? How would I deal with a ...
4
votes
2answers
183 views

Show siblings of visible headers after hide-other

I'm using Outline mode (usually the minor mode, but it shouldn't matter) or Org mode. I have a file that looks like this: -*-outline-*- * Chapter 1 ** Section 1.1 *** Subsection 1.1.1 foo *** ...
9
votes
2answers
1k views

Alternative Org Mode Implementations [closed]

Has the org-mode text syntax been adopted anywhere besides emacs? The only place I can think of is that Github allows you to write readmes in org mode and can display it like it can markdown. Are ...
7
votes
2answers
501 views

Sleep in an kbd macro

I was completing the python koans in emacs, and I was using a kdb macro to test my changes in a shell buffer and jump back into the python code. I wanted to take the line number of the next error from ...
5
votes
2answers
421 views

How can I convert hexidecimal values to base 10 in hexl-mode?

A nice feature of viewing binary files with hexl-mode is it displays the equivalent ASCII values to the right of your hexidecimal lines. Is there a way to make hexl-mode treat hex values as floats, ...
15
votes
1answer
236 views

Are there Emacs tools for the visually-impaired?

I have a client, a Ph.D. candidate in Computational Chemistry, that is visually impaired. He's pretty self sufficient and he's had some success learning the content by directly reading source, when ...
2
votes
2answers
207 views

Command to automatically define a resource variable in an Android project

When coding Android projects, resource variables are somewhat cumbersome to define, as they involve visiting a file far away in the directory structure and writing xml(!). Say I want to define a ...
6
votes
1answer
419 views

backword-sentence and forward-sentence are moving over paragraphs

I use markdown-mode to edit markdown, but it's missing one very useful feature. Whenever I press M-a (backward-sentence) or M-e (forward-sentence) it takes me to the start or end of the paragraph, ...
8
votes
2answers
2k views

How do I ediff a buffer against a revision?

I want to run ediff to compare my current version of a file (in git) with a version of the file on a different branch. I run M-x ediff-revision from within an open buffer for the file in question. I ...
7
votes
2answers
636 views

Hook that indicates when the cursor has been moved by scrolling

Inspired by this question: Let Emacs move the cursor off-screen, I am considering writing a minor mode that will keep the cursor in a fixed position that is not affected by scrolling operations. I ...
3
votes
2answers
822 views

Emacs flickers when I run certain commands (gif screencast included)

After I did an overhaul of my .emacs file yesterday (adding/removing packages, organizing, etc.), I'm left with an annoying screen flicker. It happens when I move the cursor to the edge of the buffer ...
6
votes
2answers
1k views

How can I change Org-mode time format for one buffer?

In general all timestamps in Org-mode appears as [YYYY-MM-DD Day]. I have one file (buffer) where I would like the format to be different. Either just [YYYY-MM-DD] or [YYYY-MM]. How do I tell Org-mode ...
6
votes
1answer
356 views

Applying major-mode font locking to exported org-babel snippets

Currently I have a bunch of code snippets in my Org-based presentation. I'm exporting them with ox-reveal, but the exported code doesn't have any syntax highlighting. Is there any way to: have syntax ...
2
votes
1answer
70 views

How do I run elisp code on a filtered email in Gnus?

I am downloading mail using fetchmail from a pop account and using gnus to read mails from the maildir. I would like to run elisp code on emails that are matched by fancy split rules, or something ...
2
votes
1answer
105 views

Highlight abbrev upon expansion

I don't really like the feeling of not being in control when using emacs' abbreviations feature. On the one hand, I don't want to be asked all the time but on the other hand I'd like to know when an ...
11
votes
3answers
889 views

Prevent org-mode from swallowing file-local variables

It is sometimes convenient to define file local variables with comments such as the following, which must be at the end of a file. # Local Variables: # fill-column: 80 # End: However, in org-mode ...
12
votes
2answers
824 views

Aligning multi-lined equations and tables in latex-mode

Let's say I'm editing a latex in Auctex's latex-mode, and I have the following equation. This is just indented with indent-region. \begin{align} \phi & = a + b + c + d \\ & = a + ...
5
votes
1answer
243 views

How can I make encrypted messages readable in my sent folder

I'm using Mu4e to send emails. When I encrypt a message, it is encrypted with the receiver's public key and since I don't have the corresponding private key I can't read the message. Naturally, I ...
1
vote
1answer
1k views

Show current function in header line

I have used a package before which used the header line to show the name of the current function being edited. Whatever package it was, I don't have it installed now. What are my options for getting ...
15
votes
1answer
610 views

I want to have the <kbd> tags for my blog written in org-mode

I write and publish my blog with org-mode and org-page. The thing is that I want to write about Emacs and, I would like to have the keystrokes highlighted as Stack Exchange does with the <kbd> ...
22
votes
2answers
2k views

What are overlays for, and how do they differ from text properties?

The manual states: You can use overlays to alter the appearance of a buffer's text on the screen, for the sake of presentation features. From its name, it suggests it can be used to create “...
7
votes
1answer
113 views

How can I copy and paste characters displayed with compose-region?

I use several modes that display Unicode characters in my code without changing the underlying file. For example, in Haskell mode, the following code: foo :: forall a. Eq a => a -> a -> a ...
2
votes
1answer
894 views

Filter Helm buffers by mode in ibuffer

When I try to filter buffers by mode in ibuffer, I am not able to filter by major mode helm-mode. For example, MR Name Size Mode -- ---- ---- ---- * *helm apropos*...
3
votes
1answer
150 views

Automatically move installed packages to site-lisp to benefit all user accounts

I have scripts to setup virtual machine images, where emacs packages are installed for the root account. Currently, I manually copy them to the appropriate site-lisp directory, i.e. one of those ...
15
votes
2answers
814 views

Is there an auto-align package or mode for Emacs?

There are times when I'm editing files (Puppet manifests, for example) where I want to align buffer contents on the fly. For example, I know that I can use align-regexp or align to align code like ...
9
votes
4answers
2k views

Recursively open files matching regexp in marked directories

Generally speaking, I would like to be able to open all files within a given set of directories (and their subdirectories) where the filename matches a given regexp. For example /home/nispio/...
5
votes
1answer
978 views

Have org-mode's exported HTML use CUSTOM_ID when linking to sub-sections in TOC

If I have an org-mode buffer like that looks like: * My headline :PROPERTIES: :ID: id1 :END: * My second headline :PROPERTIES: :ID: id2 :END: And I export this to HTML with a table-of-contents, the ...
19
votes
2answers
2k views

When are org-mode attachments preferable to file hyperlinks?

As far as I can tell, org-mode attachments solve the same problem as do file hyperlinks but in a clunkier way. In what situations would attachments be the superior solution?
11
votes
2answers
1k views

How can I make ibuffer auto-refresh the list of buffers?

M-x ibuffer Select a buffer Kill that buffer After the buffer is killed, the ibuffer buffer re-appears, but it still shows the buffer name killed in step 3. Is it possible to have ibuffer auto-...
11
votes
1answer
3k views

Projectile does not show all files in project

After visiting a file that is part of a git repository, Projectile acknowledges the existence of my git repository as a project, but it only lists one file (the current file) as being part of the ...
8
votes
2answers
486 views

How to insert text after point?

I'd like to insert (programmatically) some text right after the point (without moving it). I came up with this: (save-excursion (insert "my text")) It seems to work. Is it a good way to do what I ...
8
votes
3answers
930 views

Writing portable Elisp

Ideally, I would like to be able to store the entire contents of my .emacs.d directory and have it "just work" on any Emacs I load it into, but still take advantage of any features of the specific ...
6
votes
2answers
988 views

Absolute fold level in Emacs?

Is there a way to emulate Vim's folding of .vimrc from Emacs? In other words, I believe most folding and hiding packages in Emacs rely on open and closing expressions. I am not sure of the internals ...
6
votes
1answer
262 views

Make AUCTeX compile each \include to a separate file

In LaTeX it is customary to put the content of different chapters into different files which are then pulled into a master file using \include{FILENAME} statements. One can then use the \includeonly{...
6
votes
2answers
1k views

Press F5 to save, compile, and run current rust file

Similar to Visual Studio, when working with Rust programs, I'd like to press F5 to save the current file, compile it, and run it. What's a good way to do this?
5
votes
3answers
742 views

How to open and rename several multi-term buffers on start-up?

After each reboot, I have to painfully re-create and rename the multi-term buffers I use in my daily routine. I am completely new to Lisp, but nonetheless, I searched for similar problem on the web ...
8
votes
2answers
205 views

What is the mode for displaying auto-updating values of s-expressions in an emacs-lisp buffer?

There is a mode for emacs-lisp buffers which allows one to display the value of each expression line by line, and updates the value of the expressions as soon as these are edited. It looks something ...
5
votes
1answer
622 views

Case-insensitive filename completion in `shell-command'

I know I can get case-insensitive filename completion in the minibuffer using read-file-name-completion-ignore-case, but this doesn't seem to apply to all filename completion in the minibuffer. ...
4
votes
3answers
214 views

How can I quickly delete the trailing pathname component in ido-mode?

I use ido-mode for finding files and directories, which is generally very efficient in terms of keystrokes. The one annoyance I've found is when deleting the trailing pathname component when using ...
4
votes
2answers
747 views

How to apply overlay or text properties to text matching a regexp?

I want to transform a text file with many lines : | refXXXXX | here useful text, first sentence, last word. | | refYYYYY | First word, second sentence. | into : here useful ...
4
votes
2answers
92 views

What compilers are used during installation of a package?

When I download and install auctex, I read that The simplest way of installing AUCTeX is by using the Emacs package manager integrated in Emacs 24 and greater (ELPA). Simply do M-x package-list-...
5
votes
1answer
752 views

How can I see total time today on _all projects_ in the modeline?

The variable org-clock-modeline-total gives me several options for what time to show in the modeline, but they limited to time clocked into the current task. I would like to show the total time clock ...
3
votes
1answer
158 views

Is there a way to automatically install the relevant package when opening an unknown file type?

Is there an automated way to discover “well-known” packages related to a given file type, e.g. scala-mode2 for Scala files, rust-mode for Rust files, etc., and install them automatically when opening ...
3
votes
1answer
138 views

Calc won't fit any curve to any data, complains “Model expression is too complex”

Even if I copy the example from here: http://www.gnu.org/software/emacs/manual/html_node/calc/Linear-Fits.html#Linear-Fits this one: [ [ 1, 2, 3, 4, 5 ] [ 5, 7, 9, 11, 13 ] ] to be more specific,...
4
votes
1answer
2k views

Why does load-theme reset the custom-theme-load-path?

For some reason, I need to manually update the custom-theme-load-path list after every update of a theme like smart-mode-line or leuven-theme. Looking for a solution, I came across this SO post. Here ...
6
votes
1answer
310 views

How do I disable key-chord-mode in the minibuffer?

key-chord-mode is useful, but I don't need it to work in the minibuffer. How do I disable it in the minibuffer?
7
votes
1answer
2k views

“terminal is not fully functional” over ssh in a *shell* buffer

I'm using the shell (M-x shell) to connect to a remote host via SSH. After launching some command line tools (mostly psql, the postgresql command line interface, but man would be the same for example),...
4
votes
1answer
157 views

Terminating ibuffer incremental search

When I terminate a Multi I-search, Emacs takes me back to the original buffer rather than the result I'm looking at. I've tried terminating the search with RET, escape, arrow keys, and none of these ...
6
votes
1answer
319 views

Predicates in ibuffer saved filter groups

How do I add a new ibuffer saved filter group which matches all files in org-agenda-files? Something like: (setq-default ibuffer-saved-filter-groups `(("Default" ("...

15 30 50 per page