New answers tagged

0 votes

Visual Glitch whenever loading emacs

I had the same issue with WSL2 under Windows 11 on a Surface Pro 7. I tried several things, none of which helped, and then I updated my video driver and it's been rock solid ever since. Throughout ...
H. Dog's user avatar
  • 101
0 votes

Show file names with the full path in the frame title

To show the real file name in the titlebar, not just the buffer name, with the additional dired buffer case, and the last default to the buffer name: (setq frame-title-format '(buffer-file-name (...
santiagopim's user avatar
1 vote
Accepted

How can I tweak TUI emacs to pick the last visited frame instead of last created frame after delete-frame?

It turns out very easy. (defun +amos/workspace-delete () (interactive) (let ((frame (window-frame (get-mru-window t nil t)))) (delete-frame) (select-frame frame))) Here is a better ...
Amos's user avatar
  • 466
0 votes

How can I tweak TUI emacs to pick the last visited frame instead of last created frame after delete-frame?

;;; ~/.emacs.d/init.el -*- lexical-binding: t; -*- (let (visited-frames) (advice-add 'select-frame :after (lambda (frame &rest _) (setq visited-frames (delq frame ...
shynur's user avatar
  • 4,618
1 vote

How to reuse a window in another frame for display-buffer

reuse a window in another frame The key to achieving this lies in using an action alist entry reusable-frames. For instance, setting its value to 0 with (reusable-frames . 0) enables searching for a ...
Y. E.'s user avatar
  • 753
0 votes

emacs starts in extremely tiny window

Started happening to me recently as well (recent debian, wayland, gnome). Super annoying. I added this to .emacs to fix it: (add-hook 'after-make-frame-functions (lambda (frame) (...
user2501488's user avatar
0 votes

emacs starts in extremely tiny window

I faced similar problem with emacsclient. I have Gnome keyboard shortcuts to open certain buffers, and after some upgrade Emacs was opening in a tiny window. To workaround it I'm calling emacsclient ...
rcheleguini's user avatar
2 votes

Is desktop restore expected to override --no-window-system?

-nw means "create the initial frame as a terminal frame", not "create only terminal frames". The resulting Emacs can still create graphical frames, as you've seen. If you don't ...
rpluim's user avatar
  • 4,850

Top 50 recent answers are included