help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set major mode for all visited files by extension


From: Yuri Khan
Subject: Re: Set major mode for all visited files by extension
Date: Tue, 5 May 2020 14:42:07 +0700

On Tue, 5 May 2020 at 04:33, Tim Johnson <tim@akwebsoft.com> wrote:

> (defun reload-buffer ()
>    "Reload the current buffer"
>    (interactive)
>    (let ((curfile (buffer-file-name)))
>      (kill-this-buffer)
> (find-file curfile)))

The built-in (revert-buffer), which I have bound to C-<f5>, works for
me in similar cases (but I don’t use session.el, just desktop.el).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]