Most Popular

1500 questions
10
votes
3 answers

What Emacs Lisp boolean/logical convenience functions exist?

What boolean/logical convenience functions / macros are available for Emacs Lisp in either the core set of functions or external packages? I'm interested in just about anything other than the built-in logical operators in and, or, not (null) and…
ebpa
  • 7,319
  • 26
  • 53
10
votes
1 answer

How do I make auto-complete enabled by default

I'm running GNU Emacs 24.4.1 on a clean install of Debian 8.1. I've installed auto-complete using the package manager. It is installed and if I type M-x auto-complete-mode I get a working auto-complete. I would like to have it enabled by default.…
Gregory Arenius
  • 247
  • 2
  • 4
  • 12
10
votes
2 answers

What might be unused keys on Emacs that generally can be used to bind keyboard macros?

I read that the usual way to bind key to keyboard macros are C-x C-k 0 to 9 and A to Z. So for example, after we define a keyboard macro, we can type C-x C-k b and Emacs will ask for a key to bind. And the reserved keys for this purpose are C-x C-k…
nonopolarity
  • 273
  • 1
  • 7
10
votes
2 answers

How to set the foreground color of the cursor face?

I tried to set the foreground color of the cursor face, but it does not seem to work. Setting the background color works fine, but setting the foreground color does not have any effect. I would like Emacs to act in the same way as my terminal. When…
ceving
  • 1,308
  • 1
  • 14
  • 28
10
votes
2 answers

How to make emacs running in daemon mode read my bashrc before start?

I run Emacs in the daemon mode as a user's systemd unit. However it won't read my environment variables. How to make it import my .bashrc first? I have multiple paths added in there and want to be able to use them in Emacs (but I don't want to…
catemperor
  • 233
  • 2
  • 10
10
votes
1 answer

Custom indentation for specific lines?

I currently try to figure out, how I can handle some lines specifically without messing up the indentation of the rest of the buffer. Consider the following function MyFunc as an example: void MyFunc() { unsigned y = 0; DONOTINDENT; unsigned…
Rosepeter
  • 101
  • 2
10
votes
1 answer

Which class or method or function am I in?

When navigating a source file with incremental search, I often find myself jumping into some context that is taller than the window. This raises the question: "Which class am I in?". Or, if the previous developer is prone to writing tall methods:…
davidrmcharles
  • 307
  • 1
  • 8
10
votes
1 answer

Use multiple `:mode` arguments with use-package

I'm trying out use-package - the docs say the argument to the :mode keyword "can be a cons cell, a list, or just a string." However, I'm not sure how to make a cons cell or list work. Here's an example: (use-package markdown-mode :mode (list…
Ken Williams
  • 390
  • 2
  • 12
10
votes
2 answers

Install packages globallly

Is this something that can / should be done? For example, often I use emacs in my user account and sometimes root account. When using the package manager (i.e marmalade or something) do I have to install the same packages seperately for each…
user2237076
  • 231
  • 1
  • 3
10
votes
1 answer

Using org-src-preserve-indentation only on specific code blocks (or buffers, or anything beyond the global context, really)

I've been Googling and digging through the org-babel docs, but it's coming out with not a lot. The thing is, one of things I'm working on is using org-babel to tangle Makefile source. In it, the documentation states, and I understand why it does,…
Tariq Kamal
  • 390
  • 1
  • 9
10
votes
1 answer

How to navigate most efficiently to the start or end of the main text of an org headline?

It's easy to navigate quickly from the start of one org-mode headline to another using speed keys. Suppose now I'm at the start of a headline, and I want to add to the main text, in the beginning immediately after the TODO keyword. Then M-f Space…
Brian Z
  • 2,863
  • 16
  • 22
10
votes
1 answer

org folding: show tags after the "...", not before?

When parental level node, which contains both child items and tags, is folded by tab, the ... indication for folded child items is associated with the tags rather than the node text. for instance, it displays like: *1st level node …
Xi Xiao
  • 523
  • 4
  • 11
10
votes
3 answers

Indentation in square brackets

Yet another question about indentation in AUCTeX... I would like to be able to indent content inside square brackets [...]. It would be useful for tikz option lists, for example, or trees drawn using forest or qtree: both these packages use square…
T. Verron
  • 4,233
  • 1
  • 22
  • 55
10
votes
2 answers

Org-mode hide tags in agenda

Maybe this is weird, but I don't like how much my tags fill up the side of my org-agenda. This is especially true after I use org-agenda-filter-by-tag to filter down to a specific tag. For example, once I've applied a filter to see only WORK tasks,…
Ryan
  • 3,989
  • 1
  • 26
  • 49
10
votes
5 answers

How to kill ediff's buffers on quit?

How to kill (C-x k) ediff's (A,B,C) buffers automatically on each ediff-quit?
denys
  • 315
  • 1
  • 11