From mboxrd@z Thu Jan 1 00:00:00 1970 From: khi at users.sourceforge.jp (khi at users.sourceforge.jp) Date: Wed, 09 Apr 2008 00:57:19 +0900 Subject: [Howm-eng 51] Re: C-c C-c: save and kill buffer ? In-Reply-To: <200804080629.m386TbvK007472@localhost.localdomain> References: <200804080629.m386TbvK007472@localhost.localdomain> Message-ID: 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