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
10 votes
Accepted

GUI Emacs sets the exec-path only from Windows environment variable but not from .emacs file

PATH vs exec-path The PATH environment variable lists directories for programs to find executable files (when executing a non-absolute filename). The exec-path Emacs variable lists directories for ...
npostavs's user avatar
  • 9,203
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
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
5 votes
Accepted

Stop GNU Emacs (GUI) on macOS from quitting

See kill-emacs-query-functions, which lets you query yourself to confirm quitting, to avoid accidental quitting. See desktop.el, which lets you save most of the state of your session when you quit, ...
Drew's user avatar
  • 77.9k
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

Disable all GUI popups and tooltips

To disable dialog windows set use-dialog-box to nil (setq use-dialog-box nil)
sivakov512's user avatar
5 votes
Accepted

How to customize emacs toolbar?

I have created an image corresponding to the pepper.xpm in the below example. In emacs25.3 use 22x22 pixel image. I just copied one of the xpm image files in the /usr/share/emacs/25.3/etc/images (in ...
manandearth's user avatar
  • 2,128
5 votes
Accepted

Why unicode 🂩 (poker card) can't be properly displayed in GUI but fine in TUI?

Sorry, I'll rewrite my answer entirely from the beginning. Sometimes, a script is a clue to find the need font for Emacs. You can check which script a codepoint belongs to by follwing: (aref char-...
dualism's user avatar
  • 304
4 votes
Accepted

How to check if my emacsclient is running in a GUI window?

It looks like you're not using the frame argument which is passed to after-make-frame-functions. Try something like this: ;; Per-frame/terminal configuration. (defun my-frame-behaviours (&...
phils's user avatar
  • 51.5k
4 votes
Accepted

How can I tell if emacs was built with X support?

I believe that if system-configuration-features includes X11 then Emacs was compiled with X support. That value is set in configure by the HAVE_X11 variable being true (look for: ...
phils's user avatar
  • 51.5k
4 votes

How to make everything except the text transparent?

I do not know for sure if the text becomes transparent, but this is what I use and I think works pretty well. However, if your font color is white, and you are reading a pdf with a white background ...
Guilherme Salomé's user avatar
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

Disable 'beautification' of text when point is on same line in org

I've wanted this too. (2021) Try the org-appear package, which can toggle emphasis, entities, and a few other things while your cursor is in the hidden text (not the entire line though). There are ...
amitp's user avatar
  • 2,541
3 votes

How do I configure home-brew-provisioned emacs to run a GUI-based emacsclient properly?

Use the following script, compiled as an application (via ScriptEditor): tell application "Terminal" try -- Tests if Emacs running already; throws error otherwise do shell script "...
Son of the Wai-Pan's user avatar
3 votes
Accepted

What's this line between the modeline and the echo area?

Since you're using my Emacs theme and could be using my emacs.d config, I suspect you have window-divider-mode enabled, which adds this border. You can either: Set the bottom border's width to 0: (...
Henrik's user avatar
  • 350
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
Accepted

Building Emacs from source doesn't generate a native application on macOS Catalina

When using the flag --without-ns, that means do not build Emacs specifically for the MacOS platform. How about using --with-ns instead, or no flag at all? The build script should automatically build ...
lawlist's user avatar
  • 19.2k
3 votes
Accepted

preview and edit side-by-side, maybe by syncronizing buffers?

Partial answer: you can have two buffers with the same content but different buffer-specific settings, such as different cursor positions (that aren't forgotten if the buffer isn't displayed in a ...
Gilles 'SO- stop being evil''s user avatar
3 votes
Accepted

How can I detect whether I'm running on a graphical system within early-init.el?

Check the value of initial-window-system. For example, if you are using Emacs on MS-Windows, then the value should be nil when under TUI, w32 when under GUI. 41.1.1 Summary: Sequence of Actions at ...
shynur's user avatar
  • 5,318
2 votes
Accepted

Key strokes doesn't work for frames created from terminal on Mac OS

Assuming that you've configured with --with-ns (because you said it works if you open Emacs by clicking on the app icon), then you can start Emacs from the console in a couple of different ways. If ...
stevoooo's user avatar
  • 737
2 votes

How to change the language of the menu on GUI version

I go to Options > multilingual envi... > set language ... It makes sense to some extent. It will make Emacs use the language you set up whenever possible. For example, if you set your ...
Segrece's user avatar
  • 83
2 votes

How can I view accent characters natively?

I guess the encoding of your file is not properly detected. Typing C-x RET r windows-1252 RET should display your file properly as it forces Emacs to interpret the file as windows-1252 and not utf-8 ...
Damien Cassou's user avatar
2 votes

Ignore spurious focus events for after-focus-change-function

I've settled with these home-made remakes of the obsoleted hooks: ;; Set up hooks to be run on focus in and focus out ;; Mutter sends spurious focus events, including sending focus out ;; events when ...
Arch Stanton's user avatar
  • 1,657
2 votes

How do I start non-GUI Emacs on the commandline?

emacs -nw will do that. man emacs says: -nw, --no-window-system Tell Emacs not to create a graphical frame. If you use this switch when invoking Emacs from an xterm(1) window, ...
Geremia's user avatar
  • 171
1 vote

Weird behavior: GUI won't start, but terminal emacs will

I've figured it out! It turns out there was a problem in my ~/.Xresources file preventing it from loading.
Lucas Liseth's user avatar
1 vote

How can I view accent characters natively?

You can tell emacs the correct encoding adding a file local variable. Put -*- coding: windows-1250 -*- in the first line of the file or ;; Local Variables: ;; coding: windows-1250-dos ;; End: at ...
matteol's user avatar
  • 2,018
1 vote

How to check if my emacsclient is running in a GUI window?

You can check display-graphic-p. See Display Feature Testing in the Emacs manual, there are a bunch of other display-*-p predicates for checking what display capabilities are available.
glucas's user avatar
  • 20.6k
1 vote

How does one set input-decode-map on GUI frames in emacsclient?

Your usage of after-make-frame-functions isn't working because you're ignoring the FRAME argument, and therefore not operating on the new frame at all. Your function needs to do this: (with-selected-...
phils's user avatar
  • 51.5k

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