summaryrefslogtreecommitdiff
path: root/org-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-01-17 21:38:38 +0800
committerJSDurand <mmemmew@gmail.com>2021-01-17 21:38:38 +0800
commit82d3a1fcc5c36a48b2a404536f89e1d80c48d999 (patch)
treeb8df471f662006b921a0d544bd8bc171f0c9c0d5 /org-conf.el
parent5f61771063f35f5cd6492708d89eb220e4067f6e (diff)
Tweak more things.
* basic.el (recenter-positions): In effect nothing changed. (prot-pulse-line): Puling the line. (pulse): Useful built-in library. (durand-pulse-pulse-line): My own tweak. (durand-pulse-recenter-top): Recenter and pulse. * init.el (prepare-in-hook-once): Make it interactive. (global-map): Add Org-mode bindings. ("durand-chercher-pdf"): Search PDFs quickly. * modeline.el (modeline-format-left): Remove the vertical bar. * org-conf.el (org-adapt-indentation) (org-modules) (org-hide-emphasis-markers) (org-hide-macro-markers) (org-hide-leading-stars): Steal some configurations from Protesilaos. (global-map) (org-mode-map): Add Org-mode bindings. (durand-pulse-pulse-line): (org-follow-link-hook): Pulse and recenter when following the link.
Diffstat (limited to 'org-conf.el')
-rw-r--r--org-conf.el25
1 files changed, 23 insertions, 2 deletions
diff --git a/org-conf.el b/org-conf.el
index d252657..1104a2b 100644
--- a/org-conf.el
+++ b/org-conf.el
@@ -4,6 +4,12 @@
;; org-format-latex-options (plist-put org-format-latex-options :scale 1.5)
)
+(setq org-adapt-indentation nil)
+(setq org-modules '(ol-gnus ol-info ol-eww))
+
+(setq org-hide-emphasis-markers nil)
+(setq org-hide-macro-markers nil)
+(setq org-hide-leading-stars nil)
;; tempo
@@ -11,9 +17,24 @@
(add-to-list 'org-structure-template-alist (cons "g" "src durand-greek"))
(add-to-list 'org-structure-template-alist (cons "el" "src emacs-lisp"))
-(add-to-list 'org-modules 'ol-gnus)
+;; (add-to-list 'org-modules 'ol-gnus)
+
+;;; Keys
+
+(define-key global-map (vector 3 97) #'org-agenda)
+(define-key global-map (vector 3 99) #'org-capture)
+(define-key global-map (vector 3 ?l) #'org-store-link)
+
+(define-key org-mode-map (vector ?\C-') nil)
+(define-key org-mode-map (vector ?\C-,) nil)
+(define-key org-mode-map (vector 'C-return) nil)
+(define-key org-mode-map (vector 'C-S-return) nil)
+(define-key org-mode-map (vector 3 ?\S-l) #'org-toggle-link-display)
+(define-key org-mode-map (vector 3 ?\C-\S-l) #'org-insert-last-stored-link)
+
+(declare-function 'durand-pulse-pulse-line "~/Desktop/emacs.d/basic.el")
-;;; TODO: To finish this configuration file...
+(add-hook 'org-follow-link-hook #'durand-pulse-recenter-top)
;;; Some variables