Hot answers tagged

37

The file name as window name (setq-default frame-title-format '("%f")) The file name and the major mode as window name (my conf) (setq-default frame-title-format '("%f [%m]"))


9

Make emacs' window title show path of the current file: (setq-default frame-title-format '(:eval (format "%s@%s: %s %s" (or (file-remote-p default-directory 'user) user-real-login-name) (or (file-remote-p default-directory 'host) ...


4

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. Therfore switching off double buffering by adding '(inhibit-double-buffering . t) to your frame parameters might fix this. Safest way is to add it to default-...


4

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 a list of frames (each of which corresponds to one page). Each frame should be visible. Optional arg TYPE should be either `pdf' (default), `png', `...


2

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+ widgets. This means they do not know anything about the export functionality of Gtk+ widgets. The best thing you can do is to use htmlfontify-buffer in order to ...


2

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 () (interactive) ;; `flet' is deprecated, but I don't know enough Emacs Lisp ;; to make the non-deprecated `cl-flet' work here. (flet ((next-read-file-uses-...


2

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 package completely, for example it's no longer in the official package repositories on Arch Linux. Thankfully the feature switched to webkit2gtk (which gets regular ...


1

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, assuming you are running GTK based Emacs. Other platforms won't allow this exact workaround, obviously.


1

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. Try to add the following to your init.el. (add-to-list 'default-frame-alist '(alpha 100))


1

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 developer: https://blog.gtk.org/2017/10/11/a-scrolling-primer/ I'll quote the relevant portion: There’s more to scrolling in GTK+ that you may not know about. One ...


1

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 see this, so won't know anything unexpected has happened. Thus, it will seem as if Emacs has crashed or become unresponsive. Also, if you are debugging your init,...


1

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 regularly. I came across this question on Reddit and the author seems to have encountered the same issue. They report that disabling TeX-PDF-mode (either by C-c C-t ...


1

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 pops up a dialog box for you to choose the input (e.g. the file name). If you customize that option to nil then Emacs just prompts you in the minibuffer, and ...


1

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 a mouse). (But it's also not clear to me what M-x has to do with selecting a file, unless you mean M-x find-file or some such.) Anyway, the reason the file ...


1

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 ezwinports first. You only need the libsrvg and its required dependences: sourceforge.net/projects/ezwinports/files. And install them into the emacs (I use 24.5) ...


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