Most Popular
1500 questions
45
votes
3 answers
How to know when or when not to use the single quote before variable names?
I have the below:
(setq some-variable "less")
I am confused why I have to use the single quote with boundp but not with bound-and-true-p.
Example 1:
(when (boundp 'some-variable)
(message "some-variable is %s"…

Kaushal Modi
- 25,203
- 3
- 74
- 179
45
votes
6 answers
Show org-mode hyperlink as plain text
Although it is convenient how org-mode shows hyperlinks, there are times when I want to see the underlying plain text, e.g. [[./file.org][Title]]. How can I do this?
I know about org-insert-link, but it is not what I want:
C-c C-l runs the command…

David J.
- 1,809
- 1
- 13
- 23
45
votes
10 answers
Keeping my .org files in sync across multiple computers
How can I keep my .org files up to date across several computers, perhaps across multiple platforms(linux/windows)?
I could keep all the .org files in git for example, but that would require me to remember to pull and push to keep the repo updated.…

Zavior
- 591
- 1
- 4
- 7
45
votes
6 answers
Org-mode 9: unable to eval code-blocks
My Emacs config lives inside of a .org file from which I tangle source blocks to a .el file. I could evaluate source blocks with C-c C-c
Today I updated to org-mode version 9 from org elpa and now evaluating a source block like
#+BEGIN_SRC…

rrogg
- 595
- 1
- 4
- 7
45
votes
2 answers
Git rm from magit
This is a very basic but I have been unable to find the answer on the web.
Is it possible to git rm, i.e. to remove a tracked file, from magit?
Thanks

wizmer
- 877
- 1
- 7
- 9
45
votes
3 answers
What can I do to speed up my start-up?
What are some basic things I could do to reduce the start-up time?
Is there anything in particular I should pay attention to, for that matter?
Note: Startup time can be mitigated by starting Emacs less often (once per session) and opening files in…

caisah
- 4,056
- 1
- 23
- 43
45
votes
7 answers
How to add a prefix to every line?
I have the code below:
Hello
There
I am some code
And want to add code in front of it, like:
I said Hello
I said There
I said I am some code
So how would I add a prefix to each line?

programking
- 7,064
- 9
- 41
- 62
44
votes
3 answers
exec-path and $PATH
I have seen examples online where people add paths to the default path in Emacs with:
(add-to-list 'exec-path "/usr/local/bin/")
I am new to Elisp, and I think I understand what the statement above does, but I have a few questions:
In what order…

Amelio Vazquez-Reina
- 5,157
- 4
- 32
- 47
44
votes
5 answers
Re-open *scratch* buffer
If I accidentally closed the scratch buffer in Emacs, how do I create a new scratch buffer?

programking
- 7,064
- 9
- 41
- 62
44
votes
2 answers
What's the difference between a buffer, a file, a window, and a frame?
When posing questions on this site, people sometimes talk about "windows" when they mean "frames," and "buffers" or "files" when they mean "windows." So:
Q: What is the difference between a buffer, a file, a window, and a frame?
(I'm posing this…

Dan
- 32,584
- 6
- 98
- 168
43
votes
1 answer
Multicolumn cells in org-mode tables
Is it possible to merge two or more cells in an org-mode table like when using \multicolumn{}{}{} or \multirow{}{}{} in LaTeX?
Something like this does not work:
|------------+-----------+----------+----------+-------------|
| | …

Tymric
- 762
- 1
- 6
- 15
43
votes
4 answers
Why can't I list the contents of Desktop on macos using dired?
When I do C-x C-f on ~/Desktop/ in macos Catalina, I get the following error.
Listing directory failed but 'access-file' worked
I can list the directory for just ~.
I'm new to Emacs and know little else. I've tried installing Emacs through Homebrew…
user25536
43
votes
1 answer
What is the difference between a function and a command?
When posting questions and answers here, people sometimes use the terms "function" and "command" interchangeably. In other cases, people only use one of the two terms to discuss specific pieces of code. As their posts usually focus on other topics,…

itsjeyd
- 14,586
- 3
- 58
- 87
43
votes
1 answer
How should I change my workflow when moving from IDO to Helm
As an Emacs newbie, I found IDO and loved it since it made searching for files so much quicker. After spending some time on this site, I've read more and more about Helm and I'm planning on making the switch. Some of my questions are:
What are the…

Ryan
- 3,989
- 1
- 26
- 49
43
votes
6 answers
How to test REST API with Emacs?
I'm putting together an app, and want to be able to test the api end points. I figured Emacs would be a cool way to go - especially if JSON responses could be parsed and the return data used in subsequent tests.
Any ideas on how to go about this, or…

Ryan White
- 671
- 1
- 5
- 8