[Howm-eng 51] Re: C-c C-c: save and kill buffer ?

Back to archive index

khi****@users***** khi****@users*****
Wed Apr 9 00:57:19 JST 2008


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****@users*****




More information about the Howm-eng mailing list
Back to archive index