Most Popular

1500 questions
10
votes
4 answers

How to programmatically execute a command in eshell?

I want to execute simple commands in eshell without explicitly typing them into the prompt, using something like with-current-buffer How can I do this?
caisah
  • 4,056
  • 1
  • 23
  • 43
10
votes
2 answers

Transiently adjust text size in mode line and minibuffer?

When working with others around a shared monitor or via screen-sharing (e.g. Google Hangout), I often use text-scale-adjust (C-x C-+) to let others more easily read my screen. I would love to be able to also transiently increase the text size of the…
Colin Fraizer
  • 740
  • 4
  • 12
10
votes
2 answers

Different scroll margins at top and bottom of window?

Q: is there a way to set different scroll margins at the top and bottom of a window? The variable scroll-margin (defined in the C source code) sets how many lines of text that Emacs displays, at a minimum, at the top and bottom of a window: Number…
Dan
  • 32,584
  • 6
  • 98
  • 168
10
votes
2 answers

How to include other .org files programmatically (ie not from main .org file)?

Including other .org files is quite easy. For example, for configuration, #+setupfile: /path/to/config.org or #INCLUDE: /path/to/config.org Those lines need to be in the .org file in order to be processed. How could one have a given #+setupfile…
gsl
  • 1,742
  • 17
  • 34
10
votes
1 answer

Stray trailing 4m before prompt with Zsh in M-x ansi-term

I recently read Running Shells in Emacs, and spend some time to adapt my elaborate Zsh prompt to work with the limited capabilities of M-x shell and M-x ansi-term. Following this effort I'm now finally able to use Zsh from within Emacs, however…
user227
10
votes
2 answers

Truncate beginning of right-aligned column in org table

I have a column in an org-mode table that contains long file names. The interesting part of the filename is the last few characters rather than the first. For example, given the files…
nispio
  • 8,175
  • 2
  • 35
  • 73
10
votes
1 answer

Are there any pre-existing benchmark suites for Emacs itself?

(This question is not about writing benchmarks/profiling elisp code, for that, see this question.) Do any benchmark suites exist for Emacs performance? I'm looking for something equivalent to the V8 interpreter team's standard benchmark or the pypy…
Wilfred Hughes
  • 6,890
  • 2
  • 29
  • 59
10
votes
2 answers

How to auto calculate the begin and end lines when including source files in org-mode?

I have the below in my documentation: #+INCLUDE: "code/basic.sv" :src systemverilog :lines "14-117" Here line 14 is where I have class basic extends .. and line 116 is where I have endclass. Is there a way to auto insert the numbers 14 and 117…
Kaushal Modi
  • 25,203
  • 3
  • 74
  • 179
10
votes
2 answers

Error retrieving: https://elpa.gnu.org/packages/archive-contents (error http 400)

I am on this version of GNU Emacs on a Windows 10 computer: GNU Emacs 26.3 (build 1, x86_64-w64-mingw32) of 2019-08-29 For the past many weeks, Emacs report this error accessing GNU Elpa when I run "list-packages": Importing…
mobatemacs
  • 101
  • 1
  • 4
10
votes
3 answers

Emacs bind key to prefix

suppose I want to bind a key to a partial key sequence (i.e. a key sequence that is a prefix of some other bound keybindings). I've tried the obvious (global-set-key (kbd "C-x C-x") (kbd "C-c")) But that doesn't work for some reason.
PythonNut
  • 10,243
  • 2
  • 29
  • 75
10
votes
2 answers

Hide long GPL copyright notice at top of file

I am working with a lot of *cpp and *h files which contain a lengthy copyright notice at the beginning. I would like emacs to show these files as if this was not there, without actually removing the text. Thas is, this: /* * Copyright (C) 2006-2008…
Beginner
  • 2,661
  • 3
  • 17
  • 25
10
votes
5 answers

How to use keyword symbols in Emacs Lisp?

According to Symbol Type A symbol whose name starts with a colon (‘:’) is called a keyword symbol. These symbols automatically act as constants, and are normally used only by comparing an unknown symbol with a few specific alternatives. See…
Searene
  • 479
  • 2
  • 14
10
votes
3 answers

Send process output to *Messages* buffer, but bypass the echo area

Is it possible to send the output from a process-filter to the *Messages* buffer and suppress that message output from appearing in the echo area, such that I am able to simultaneously use interactive commands without having the minibuffer-prompt…
lawlist
  • 18,826
  • 5
  • 37
  • 118
10
votes
3 answers

How to bind key in use-package

I added a section binding to my config, but one key doesn't work. :bind (("C-c a" . org-agenda) ("" . org-capture) ("" . org-insert-subheading)) These two keys (C-c a, f6) work as I expected. If I check the M-S-return…
dmin
  • 343
  • 2
  • 10
10
votes
1 answer

Underlining in org-mode links with multiline descriptions?

Q: How can I stop underlining through the left "margin" in links that extend over more than one line? The face org-link inherits from the face link, which has the underline attribute set to t (or at least it does by default). Ordinarily, that's all…
Dan
  • 32,584
  • 6
  • 98
  • 168