Most Popular
1500 questions
11
votes
3 answers
org-plus-contrib and org with `require` or `use-package`
How can I ensure I'm downloading and using org-plus-contrib from the org-mode repository using require or use-package? Package.el downloads the package, compiles everything and then says it can't load org-plus-contrib. This thread on the mailing…

wdkrnls
- 3,657
- 2
- 27
- 46
11
votes
1 answer
Gradually learning the keybindings provided by AUCTeX
If I do M-x forward-char, Emacs gives a very useful message
You can run the command "forward-char" with C-f.
Considering the fact that Emacs can find all LaTeX keybindings in the file latex.el under LaTeX-math-default provided by AUCTeX,
is it…

Name
- 7,689
- 4
- 38
- 84
11
votes
5 answers
Preview fields in org table
Sometimes it is convenient to set a manual column width when creating a table in org-mode. This makes it so that columns do not have to grow to the size of their longest entry. When an entry in and org-mode table is longer than the column it is…

nispio
- 8,175
- 2
- 35
- 73
11
votes
2 answers
Make emacs lock display of the first line of a file
How can I make Emacs always display the first line of a file which contains header information (such as a CSV) as I scroll down past where it would usually no longer be visible?

wdkrnls
- 3,657
- 2
- 27
- 46
11
votes
3 answers
How can I automatically insert a prototype in foo.h from foo.c?
Suppose I'm writing a C program in a file foo.c:
int add_numbers(int x, int y, int z) {
// Very complex implementation here.
return x + y + z;
}
I want a command that will insert a corresponding function prototype in foo.h:
int…

Wilfred Hughes
- 6,890
- 2
- 29
- 59
11
votes
1 answer
How do I make tramp+eshell use my environment customized in the remote ~/.bash_profile
I have set up custom $PATH in my ~/.bash_profile on a remote machine (for programs installed user-locally by nix and cabal).
I use eshell and tramp to issue commands on the remote machine (cd /remotehost:somedir; then commands). (I chose this method…

imz -- Ivan Zakharyaschev
- 591
- 6
- 20
11
votes
2 answers
The syntax highlight and indentation of source code block in exported html file for org-mode
When I insert C code block inside an org-mode file, the syntax highlight and indentation of the source code are customized as I wanted.
When I export it into a html file, the syntax highlight in the html file is exactly the same as in Emacs. But…

CodyChan
- 2,599
- 1
- 19
- 33
11
votes
3 answers
Make use of an empty echo area to display information
The echo area is empty most of the time, which makes me think that I could use it to display some information. For example, org-clock displays the current task, the remaining time and the total elapsed time on the modeline. This information is not…

T. Verron
- 4,233
- 1
- 22
- 55
11
votes
2 answers
How to make eww default browser in Emacs?
When I click on links in my org-mode buffer it opens up my external browser. How can I make Emacs default to eww (and let me open up an external browser from there if I wish)?

wdkrnls
- 3,657
- 2
- 27
- 46
11
votes
4 answers
How to convert a series of lines into a working HTML list?
Right now, this is a task I find a lot easier in something like gedit, because I can just replace "\n" (the line break) with "\n" and then I have a list.
One of the few little things I don't seem to be able to in Emacs quickly, but…

mattl
- 215
- 2
- 7
11
votes
1 answer
Is there a way to detect that emacs is running in a terminal?
When I run emacs in a terminal (using the -nw option) my theme is broken and some key-bindings don't work.
So, I need to disable the theme and some keybindings when running in a tty.
Is there a way to do that?

Nishant
- 113
- 1
- 6
11
votes
1 answer
Difference between [mouse-1] and [down-mouse-1]
I noticed two keys: [mouse-1] and [down-mouse-1].
When I use describe-key with a single click, it shows:
There were several key-sequences:
at that spot runs the command evil-mouse-drag-region
at that spot runs the…

FunkyBaby
- 767
- 1
- 4
- 10
11
votes
6 answers
How to run a previous command in an Emacs shell?
Of course when I am in Terminal and I press the up arrow key, it goes to the previous command. However, when I hit the M-x keys and type shell an integrated shell comes up in Emacs:
However, if I type a command and press up, this happens:
How do…

programking
- 7,064
- 9
- 41
- 62
11
votes
4 answers
Is there a gccemacs (native-comp) build for MS-Windows?
I use the official binaries (28.0.50 prerelease) for MS Windows. I am using gccemacs on my home Linux machines, and feel like native-comp on Windows would be really useful for me at work. However, I don't have a MingW toolchain installed. Is anyone…

JFM
- 185
- 1
- 6
11
votes
2 answers
How to find out what my AUCTeX version is?
How can I find out what my AUCTeX version is? I have Googled this question to no avail.

Evan Aad
- 1,461
- 1
- 14
- 29