summaryrefslogtreecommitdiffstats
path: root/.emacs.d/site-lisp
diff options
context:
space:
mode:
authorGravatar Tom Willemsen2013-02-15 00:36:22 +0100
committerGravatar Tom Willemsen2013-02-15 00:36:22 +0100
commit1d1f51db6986d319712818c77d26bcb52df26eaa (patch)
tree32e41a0443d6e717926c8232f9d9235b90ecc1fa /.emacs.d/site-lisp
parentde0ac7e06e82aecb9a3c79dbb0a60adeec544b2e (diff)
downloaddotfiles-1d1f51db6986d319712818c77d26bcb52df26eaa.tar.gz
dotfiles-1d1f51db6986d319712818c77d26bcb52df26eaa.zip
emacs: Add button to show special org file
Diffstat (limited to '.emacs.d/site-lisp')
-rw-r--r--.emacs.d/site-lisp/oni.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/site-lisp/oni.el b/.emacs.d/site-lisp/oni.el
index 2729474..1afe1d6 100644
--- a/.emacs.d/site-lisp/oni.el
+++ b/.emacs.d/site-lisp/oni.el
@@ -500,6 +500,11 @@ insert at the end of the region and at the beginning."
(interactive)
(message (format "%d:%d" (line-number-at-pos) (current-column))))
+(defun oni:show-org-index ()
+ "Show the index of my org files."
+ (interactive)
+ (find-file "~/documents/org/index.org"))
+
(defun oni:smex-init ()
"Initialization function for smex."
(global-set-key (kbd "M-x") 'smex)