From: Yuri Khan <yuri.v.khan@gmail.com>
To: Tim Johnson <tim@akwebsoft.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Set major mode for all visited files by extension
Date: Tue, 5 May 2020 14:42:07 +0700 [thread overview]
Message-ID: <CAP_d_8VvKq4SJRF0=FnaU29OzERMtQYTRixSRCLCSdGw2-aVoA@mail.gmail.com> (raw)
In-Reply-To: <a5c067f2-e344-3d23-4034-7cc693e3c288@akwebsoft.com>
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).
next prev parent reply other threads:[~2020-05-05 7:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-03 1:00 Set major mode for all visited files by extension Tim Johnson
2020-05-03 1:15 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-05-03 15:37 ` Tim Johnson
2020-05-04 4:30 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-05-04 5:53 ` Jean-Christophe Helary
2020-05-04 6:09 ` update Emacs (was: Re: Set major mode for all visited files by extension) Emanuel Berg via Users list for the GNU Emacs text editor
2020-05-04 6:20 ` Jean-Christophe Helary
2020-05-04 7:50 ` update Emacs Kévin Le Gouguec
2020-05-05 2:38 ` Emanuel Berg via Users list for the GNU Emacs text editor
2020-05-04 21:33 ` Set major mode for all visited files by extension Tim Johnson
2020-05-05 7:42 ` Yuri Khan [this message]
2020-05-05 17:49 ` Stefan Monnier
2020-05-05 17:53 ` Tim Johnson
2020-05-05 18:47 ` Perry Smith
2020-05-05 19:20 ` Drew Adams
2020-05-05 22:57 ` Tim Johnson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAP_d_8VvKq4SJRF0=FnaU29OzERMtQYTRixSRCLCSdGw2-aVoA@mail.gmail.com' \
--to=yuri.v.khan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=tim@akwebsoft.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).