merged
authorOleksandr Gavenko <gavenkoa@gmail.com>
Thu, 13 Oct 2011 20:49:17 +0300
changeset 724 77c31cb9ae75
parent 723 ff912b026ad2 (current diff)
parent 722 7d43d5ae86fe (diff)
child 726 2fa569bc7418
merged
.emacs-my
--- a/.emacs-my	Mon Oct 10 10:41:54 2011 +0300
+++ b/.emacs-my	Thu Oct 13 20:49:17 2011 +0300
@@ -405,6 +405,8 @@
   (if (equal (buffer-name) "*scratch*") nil t))
 (add-to-list 'kill-buffer-query-functions 'my-prevent-kill-buffer)
 
+(define-key global-map "\C-ct" (lambda nil (interactive) (switch-to-buffer "*scratch*")))
+
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 (message "switching, creating, selecting buffers")
 
@@ -1037,7 +1039,7 @@
   (setq my-org-agenda-note-file (concat org-directory "/NOTE.org"))
   (setq org-agenda-files `(,my-org-agenda-todo-file ,my-org-agenda-note-file))
   (define-key global-map "\C-ca" 'org-agenda)
-  (define-key global-map "\C-ct" (lambda nil (interactive) (find-file my-org-agenda-note-file)))
+  (define-key global-map "\C-ce" (lambda nil (interactive) (find-file my-org-agenda-note-file)))
   ;; I expect that these bindings work in all mode, Org mode use own, so redefine:
   (define-key org-mode-map [C-S-right] 'forward-word-mark)
   (define-key org-mode-map [C-S-left] 'backward-word-mark)