Most Popular

1500 questions
10
votes
4 answers

Opening a new file whose parent directory doesn't exist yet

When opening a new file whose parent directory doesn't exist yet, I either open a shell window, or an Emacs shell buffer, and then mkdir the directory in it. I find this cumbersome. Is there an easier way?
Tim
  • 4,987
  • 7
  • 31
  • 60
10
votes
1 answer

Changing default font size in Org LaTeX export

Org exports LaTeX with default font size of 11 pts. Is it possible to make this font size to 10 pts and also reduce spacing to one and half space ? Regards
Vaibhav
  • 573
  • 3
  • 15
10
votes
1 answer

How to compile emacs with debug symbols?

I'm having trouble walking through emacs source code in gdb. I think I'm missing debug symbols. Following a suggestion from https://stackoverflow.com/a/4298982/2752242, I tried: ./configure CFLAGS="-ggdb3 -O0" CXXFLAGS="-ggdb3 -O0" LDFLAGS="-ggdb3"…
Job Evers
  • 300
  • 1
  • 8
10
votes
2 answers

Strip text properties in savehist

I save the kill-ring using the savehist package. savehist saves the kill ring with text-properties intact. Unfortunately, this is a problem. I have a rather large emacs config, and I use a lot of highlighting. Here is the first element of my…
PythonNut
  • 10,243
  • 2
  • 29
  • 75
10
votes
4 answers

How can I run a keyboard macro in selected buffers from Ibuffer or selected files from dired?

If I have to do some variable name refactoring, I use ag and multiple-cursors. But when I have to do some code block removal/addition/moving, I use keyboard macros. But I need to switch to each buffer and initiate that macro run manually. Is there a…
Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179
10
votes
3 answers

Why does defvar scoping work differently without an initvalue?

Suppose I have a file named elisp-defvar-test.el containing: ;;; elisp-defvar-test.el --- -*- lexical-binding: t -*- (defvar my-dynamic-var) (defun f1 (x) "Should return X." (let ((my-dynamic-var x)) (f2))) (defun f2 () "Returns the…
Ryan C. Thompson
  • 435
  • 2
  • 10
10
votes
1 answer

In Org Mode, how do I link to internal documentation?

I want to create a clickable-link in my Org file directly to documentation built into Emacs. Is this possible to do? The documentation I want to link to are: Emacs Lisp Intro The GNU Emacs Lisp Reference Manual
10
votes
6 answers

Open the same file in two frames

With long files, I like to have two buffers that display the same file but at different positions. However, since I have two physical displays, I'd like to have two Emacs buffer, each on its own monitor, and then I could open 3, or even 4 copies of…
wvxvw
  • 11,222
  • 2
  • 30
  • 55
10
votes
1 answer

How to get the raw data for an org-mode agenda without an agenda view?

Q: How can I have org-mode return the raw data for an agenda view without actually creating an agenda view? I'd like to access my agenda for an arbitrary day. However, I do not want to create an agenda view per se. Instead, I want org-mode to…
Dan
  • 32,584
  • 6
  • 98
  • 168
10
votes
3 answers

Repeat last text insert

In Vim you can press . to repeat the latest change, including inserting text. While in Emacs C-x z only repeats the last command. I am aware that macros can be used here, but more than often I realize that I need to re-insert the same text too late.…
ooi
  • 273
  • 1
  • 7
10
votes
1 answer

Org - show checkboxes in Agenda?

Is there anyway to show outline with its checkboxes in Org Agenda views like this? ** TODO Checkboxes [1/3] SCHEDULED: <2014-11-28 Fri 12:00> - [X] Wash cloths - [ ] Buy milk - [ ] Wash dishes Currently, my Agenda can only show its title…
kuanyui
  • 1,020
  • 6
  • 16
10
votes
3 answers

How to syntax highlight Python f-strings so {...} uses regular code colors?

Update, Emacs 28 supports f-stings Python 3.6 supports F strings, eg: So: print(f'Test {} me!'.format(2 + 2)) Can be written as: print(f'Test {2 + 2} me!') Which print's Test 4 me, Is there a way to adjust emacs syntax highlighting so the text…
ideasman42
  • 8,375
  • 1
  • 28
  • 105
10
votes
2 answers

xclip hangs shell-command

I like to use the xclip utility to capture the output of commands on the clipboard. However, when I try to use it with shell-command it seems to hang. In a "normal" shell I can run a command such as echo "hello world" | xclip -selection clipboard…
shay
  • 203
  • 1
  • 7
10
votes
3 answers

Why does magit now prompt for which submodule to update?

I used to be able to press "o" then "u" (magit-submodule-update) in a magit buffer and have it update all my submodules. Now, it asks me to type in the path of which submodule I want to update. Is there a way to go back the the old behavior where…
andy turk
  • 131
  • 7
10
votes
3 answers

orgmode image export side by side to both latex and html

In org export, I want to place two images side by side. I want them to be side by side in both LaTeX export and HTML export. In the example below, the first pair works for LaTeX and the second pair for HTML but not both. #+NAME: a #+BEGIN_SRC dot…
user3414663
  • 235
  • 1
  • 8