diff options
Diffstat (limited to 'infra/libkookie/overlays/kookie/emacs/org/default.el')
-rw-r--r-- | infra/libkookie/overlays/kookie/emacs/org/default.el | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/infra/libkookie/overlays/kookie/emacs/org/default.el b/infra/libkookie/overlays/kookie/emacs/org/default.el new file mode 100644 index 000000000000..2dc752379758 --- /dev/null +++ b/infra/libkookie/overlays/kookie/emacs/org/default.el @@ -0,0 +1,31 @@ +;; org.el +;; Configure org-mode key bindings and custom functions +;; +;; This module depends on org mode. +;; +;; +;; This file is part of LIBKOOKIE, a collection of nix expressions. +;; LIBKOOKIE is licensed under the GPL-3.0 (or later) -- see LICENSE + +(provide 'kookie-org) +(require 'org) + +;;; Set .org as my file ending of choice +(add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) + +(defun org-open-at-point-in-current-window () + "A utility function to easily navigate org-mode file trees" + (interactive) + (let ((org-link-frame-setup (quote + ((vm . vm-visit-folder) + (vm-imap . vm-visit-imap-folder) + (gnus . gnus) + (file . find-file) + (wl . wl))) + )) + (org-open-at-point))) + +;;; Org mode key bindings replicated here to make it easier for me +(define-key org-mode-map "\C-c\C-o" 'org-open-at-point-in-current-window) +(define-key org-mode-map "\C-S-<up>" nil) +(define-key org-mode-map "\C-S-<down>" nil) |