Most Popular
1500 questions
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,358
- 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
- 3
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
- 410
- 3
- 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
- 4
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,913
- 17
- 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
- 533
- 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,283
- 2
- 24
- 56
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
- 4,039
- 1
- 27
- 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
10
votes
2 answers
How to build Emacs master branch (aka trunk) on MS-Windows
I took the plunge today and started out on my quest to build the most recent Emacs master branch developer build -- aka Emacs Trunk -- for MS-Windows.
I found an old blog and went through the procedure, only to be met with an error message telling…

lawlist
- 19,106
- 5
- 38
- 120
10
votes
2 answers
How to set emacs frame size by pixels
I can resize the emacs frame to whatever size by mouse, is there a way that the frame size be set in init.el by pixels? Or anything similar in the window manager?

godblessfq
- 1,217
- 9
- 22
10
votes
3 answers
Expand org-mode subtree with point after ellipsis?
I love org-mode, but one of the things that has always bugged me is that, if the point is after a collapsed subtree's ellipsis, pressing TAB doesn't expand it. For example, if the point is here (represented by |):
* Grandiose Plans
** Save the…
user3871