Skip to main content
Share Your Experience: Take the 2024 Developer Survey
29 votes
Accepted

On Linux why should one choose Lucid over Gtk gui for emacs?

Reasons to use Lucid over GTK Stability Examples from etc/PROBLEMS: ** When Emacs is compiled with Gtk+, closing a display kills Emacs. ... *** Emacs built with GTK+ toolkit produces corrupted ...
npostavs's user avatar
  • 9,203
18 votes

Magit, how to use system's ssh agent and don't ask for password

Another solution for the lazy is to just use a package that handles exactly this case (setting Emacs' keychain-related environment variables): Install and add to your init.el package keychain-...
tlegutko's user avatar
  • 356
16 votes
Accepted

How does emacs respond to Unix signals?

The signals which are mentioned in the manuals are: SIGHUP, SIGINT, SIGTERM, SIGTSTP, SIGUSR1, SIGUSR2 USR1 and USR2 get the most attention, as you can customize the effects of these. The following ...
phils's user avatar
  • 51.6k
15 votes

Prebuilt Ubuntu Emacs "25.1"

Stable versions (25.1 currently): sudo apt-add-repository -y ppa:adrozdoff/emacs sudo apt update sudo apt install emacs25 Provided packages for LTS 14.04 and 16.04.
Monah Tuk's user avatar
  • 251
9 votes

On Linux why should one choose Lucid over Gtk gui for emacs?

Lucid Emacs uses the older lucid widget toolkit for XWindows. It looks older and greyer and I see no compelling reason to use it on a modern X desktop. Unless of course you have specific reasons to ...
Peter Tillemans's user avatar
8 votes

How can I set default font in Emacs?

From: https://www.gnu.org/software/emacs/manual/html_node/emacs/Fonts.html#Fonts Add a line to your init file: (add-to-list 'default-frame-alist '(font . "DejaVu Sans Mono-10"))
rchar01's user avatar
  • 447
8 votes
Accepted

How to get the PATH from the SHELL

No, you don’t want to use -i because you’re not launching an interactive shell. That is, this shell will not be connected to a terminal that the user can type in. It is instead going to be connected ...
db48x's user avatar
  • 18.3k
7 votes

On Linux why should one choose Lucid over Gtk gui for emacs?

If you forward X11 you need Lucid emacs, because gtk emacs may crash if the ssh connection is lost and X server crashes. Note the error message when trying to run emacs --daemon with gtk emacs $ emacs ...
KhalfaniW's user avatar
  • 357
7 votes
Accepted

how to disable automatic dos mode?

From the https://www.emacswiki.org/emacs/EndOfLineTips You can reopen the file with the correct line ending with a command like M-x revert-buffer-with-coding-system utf-8-dos. If your file is not ...
Konstantin Morenko's user avatar
7 votes
Accepted

Error (initialization): User ... has no home directory

Following the idea from @glucas, I debugged the variable init-file-user, and came up with a temporary solution alias emacs='emacs --user ""' With --user '', it enforced the init-file-user to be an ...
zyxue's user avatar
  • 186
6 votes

Dired: Open files by external application in Linux

Use Dired-x (standard library dired-x.el: put (require 'dired-x) in your init file). Customize option dired-guess-shell-alist-user. C-h v tells you: dired-guess-shell-alist-user is a variable ...
Drew's user avatar
  • 77.9k
5 votes

Possible to "detach" a child process?

Currently the best way to achieve this (although it does not work for Windows) is by using the command call-process with the destination argument set to 0 (see https://www.gnu.org/software/emacs/...
dalanicolai's user avatar
  • 7,865
5 votes
Accepted

Possible to "detach" a child process?

here's solution, shorting @abo-abo's answer. (cond ((string-equal system-type "windows-nt") ; Windows // ... ) ((string-equal system-type "gnu/linux") (start-process "my-...
Xah Lee's user avatar
  • 1,766
5 votes
Accepted

How to make GUI Emacs use all available space when running maximized on linux?

Found solution on this github: The window frame cannot be maximized 100% to suit the whole screen Seems like the problem was the selected font and setting the variable "frame-resize-pixelwise" to ...
DenverCoder9's user avatar
5 votes
Accepted

Set a title to an Emacs instance running in a terminal

A bit of terminology that can help you find help and documentation: for historical reasons, what the rest of the world calls a window is called frame in Emacs. What Emacs calls a window is what the ...
Gilles 'SO- stop being evil''s user avatar
5 votes

How do I get colour emoji to display in Emacs

You need to use a font with support for that. This is what I do: (if (>= emacs-major-version 27) (set-fontset-font t '(#x1f000 . #x1faff) (font-spec :family "Noto Color Emoji&...
pst's user avatar
  • 276
4 votes
Accepted

How to generate list of hex numbers?

Following is a method using an elisp formula: | hex | comment | |------+---------| | 0x00 | | | 0x01 | | | 0x02 | | | 0x03 | | | 0x04 | | | 0x05 | | | ...
Juancho's user avatar
  • 5,465
4 votes

On Linux why should one choose Lucid over Gtk gui for emacs?

Daemon mode is THE preferred way of running emacs (numerous benefits), but the almost certain crash in the event of disconnect from the display is weighing in favour of the Lucid toolkit instead of ...
gagrilli's user avatar
4 votes

can not access melpa packages- hung up at Contacting host: elpa.gnu.org:80

Here are some alternatives for you in case you cannot access the official sites. First: (setq package-archives '(("gnu" . "http://mirrors.tuna.tsinghua.edu.cn/elpa/gnu/") (...
cmal's user avatar
  • 775
4 votes
Accepted

Copy/paste between SSH terminal Emacs and macOS

I just recently wrote an Emacs package called Clipetty which solves this very problem. It uses OSC-52 xterm escape sequences, is smart enough to know when you're running on a remote host, and can deal ...
spud's user avatar
  • 121
4 votes

How do I get colour emoji to display in Emacs

Step 1 is to make sure that you have Cairo and Harfbuzz enabled. You can run this elisp and check the results to test this: (featurep 'cairo) ; should evaluate to t (frame-parameter (selected-frame) '...
Dan Robertson's user avatar
4 votes
Accepted

How can I have a bracket guide when programming?

It's based more on indentation level than "brackets", but does DarthFennec/highlight-indent-guides provide what you're looking for? From the README: This minor mode highlights indentation ...
nega's user avatar
  • 3,276
4 votes

How to see total line number of a file in emacs Mode line?

You control the mode line using the variable mode-line-format. Typically, it is a list of entries that Emacs walk through recursively to decide what the mode line contains. For example, the following ...
Lindydancer's user avatar
  • 6,170
4 votes

How to install emacs29 with X11 support?

When you compile Emacs you have options for specifying which windowing system to use, if any. In current versions of Emacs, the options are: --with-x use the X Window System --with-pgtk use ...
phils's user avatar
  • 51.6k
3 votes
Accepted

redraw-display when focused

Add a hook to the focus event. (add-hook 'focus-in-hook 'redraw-display). Thanks to Håkon Hægland for the Answer!
Prgrm.celeritas's user avatar
3 votes

how to disable automatic dos mode?

(emacs) Recognize Coding Emacs recognizes which kind of end-of-line conversion to use based on the contents of the file: if it sees only carriage-returns, or only carriage-return linefeed ...
npostavs's user avatar
  • 9,203
3 votes

Prebuilt Ubuntu Emacs "25.1"

For those who want to run stable emacs 25.1 on Ubuntu 16.10, I pulled the source package from zenity-proposed and pushed it to my ppa for yakkety, so you can install as follows: sudo add-apt-...
aap's user avatar
  • 131
3 votes

Problem "<dead-acute> is undefined" appearing when typing Greek stress ( ' )

Tryto launch emacs with : env XMODIFIERS= emacs This runs Emacs without the XMODIFIERS environment variable set, which disables input methods for just that program.
jmary's user avatar
  • 141
3 votes

Magit, how to use system's ssh agent and don't ask for password

FWIW, keychain now has a --systemd switch, which will inject the variables into the systemd user environment. The simplest solution I found was to add eval "$(keychain --eval --quiet --noask --...
Vladimir Panteleev's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible