Hot answers tagged

38 votes
Accepted

How to change the frame title from `emacs@host` to visited file name

The file name as frame name (setq-default frame-title-format '("%f")) The file name and the major mode as frame name (my conf) (setq-default frame-title-format '("%f [%m]")...
user avatar
  • 3,056
9 votes

How to change the frame title from `emacs@host` to visited file name

Make emacs' window title show path of the current file: (setq-default frame-title-format '(:eval (format "%s@%s: %s %s" (or (file-remote-...
user avatar
  • 1,831
4 votes

Emacs 26.1 RC1 display issues over SSH/X11 with xming/vcxsrv

Emacs 26 by default switches on double buffering for X servers when it finds the Xdbe header on the build machine. (See Emacs 26 release notes at the GitHub mirror.) Some X servers don’t support this. ...
user avatar
  • 1,081
4 votes
Accepted

Can I take vector (SVG) screenshots of Emacs?

It's possible in Cairo builds, which are now the default on GNU/Linux! (x-export-frames FRAMES TYPE) Return image data of FRAMES in TYPE format. FRAMES should be nil (the selected frame), a frame, or ...
user avatar
  • 3,724
3 votes

Command to invoke menu-bar's open-file?

find-file uses the minibuffer or the GTK+ dialog depending on what next-read-file-uses-dialog-p returns. So you can force the dialog by overriding this function: (defun vf-find-file-with-dialog () (...
user avatar
2 votes

Can I take vector (SVG) screenshots of Emacs?

According to the documentation Gtk+ widgets in Emacs are: menus, dialogs, tool bars and scroll bars Buffers are rendered by Emacs itself. Neither the buffer nor the lines in a buffer are Gtk+ ...
user avatar
  • 1,154
2 votes
Accepted

The status of Xwidgets and webkitgtk?

Originally the feature relied on webkit1gtk, this made it unacceptable for distributions as it continued to accumulate security vulnerabilities that didn't get patched. Some even got rid of the ...
user avatar
  • 21.1k
1 vote

Can the menubar and scrollbar be customized?

Barring any other answers, which are endemic to Emacs, I actually found one way to change the theme per app: GTK_THEME=<your_theme> emacs This will launch Emacs with the specified theme, ...
user avatar
  • 399
1 vote
Accepted

Emacs transparent after fresh install

Welcome Soap! This seems unrelated to Emacs. I guess it could be related to your window manager (AwesomeWM), some kind of X11 compositor like Compton or the configuration files associated with those. ...
user avatar
  • 1,106
1 vote

Emacs 24.3 and 26.3 scrollbars refuses to move up if not moved up immediately, on various OS's and X-servers

Aha, I figured it out. It's a new feature (or "feature", depending on your outlook) of Gtk 3. I haven't found any mention of it in the documentation yet, but here's an article from a Gtk ...
user avatar
  • 12.2k
1 vote

Preload problem: Emacs as daemon in X

Don't use all those options at once; some of them are doing incompatible things: --debug-init loads emacs, and stops with a stack trace if it encounters a problem. If it's in daemon mode, you won't ...
user avatar
  • 20.5k
1 vote
Accepted

Cannot generate previews with latex-preview

I have the exact same problem, error message and symptoms on a system running Arch Linux (kernel 5.3.7-arch1-1-ARCH), texlive 2019, Emacs 26.3 (build 1) and auctex 12.1.2. Everything is updated ...
user avatar
1 vote
Accepted

How to avoid a dialog box for input (e.g. "Open File" behavior)?

I'm not sure what you're asking, but maybe this is it. If option use-dialog-box is non-nil, and if you use the mouse to invoke a command that asks you for some input such as a file name, then Emacs ...
user avatar
  • 70.3k
1 vote

Command to invoke menu-bar's open-file?

You ask about initiation of the selection by M-x. I don't know whether there is a simple way to cause use of the dialog box even when you do not use a menu or tool-bar button (typically initiated with ...
user avatar
  • 70.3k
1 vote
Accepted

Emacs hang after installing GTK3 in windows 7

Oh, I just saw the "Answer your question" Button. So I copy the above solution in my comments here. To use gtk3 with emacs under microsoft windows (7 at least): One has to use the image ports from ...
user avatar
  • 21

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