From: khi at users.sourceforge.jp (khi at users.sourceforge.jp)
Subject: [Howm-eng 51] Re: C-c C-c: save and kill buffer ?
Date: Wed, 09 Apr 2008 00:57:19 +0900 [thread overview]
Message-ID: <m33apwl4ps.wl@id.domain> (raw)
In-Reply-To: <200804080629.m386TbvK007472@localhost.localdomain>
Hi.
At Tue, 8 Apr 2008 08:29:37 +0200,
Xavier Maillard wrote:
> I do not know why but I am used to press C-c C-c in almost all
> the modes I use. What it does ? Simply save the buffer and bury
> or kill it.
How about this quick solution?
(from http://howm.sourceforge.jp/cgi-bin/hiki/hiki.cgi?SaveAndKillBuffer)
(defun my-save-and-kill-buffer ()
(interactive)
(save-buffer)
(kill-buffer nil))
(global-set-key "\C-c\C-c" 'my-save-and-kill-buffer)
;; or
(define-key howm-mode-map "\C-c\C-c" 'my-save-and-kill-buffer)
--
khi at users.sourceforge.jp
next prev parent reply other threads:[~2008-04-08 15:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-08 6:29 [Howm-eng 50] " xma
2008-04-08 15:57 ` khi [this message]
2008-04-09 0:00 ` [Howm-eng 52] " xma
2008-04-09 13:22 ` [Howm-eng 57] " khi
2008-04-12 0:00 ` [Howm-eng 65] " xma
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m33apwl4ps.wl@id.domain \
--to=howm-eng@lists.osdn.me \
/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 NNTP newsgroup(s).