64 lines
1.4 KiB
Org Mode
64 lines
1.4 KiB
Org Mode
#+TITLE: Org mode configuration
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(require 'org)
|
|
(require 'org-capture)
|
|
#+END_SRC
|
|
|
|
Tell org-mode to fontify code blocks in their specified languages.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(setq org-src-fontify-natively t)
|
|
#+END_SRC
|
|
|
|
Pressing RET on a link should really follow that link.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(setq org-return-follows-link t)
|
|
#+END_SRC
|
|
|
|
Enable automatic text filling for org-mode.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(add-hook 'org-mode-hook 'auto-fill-mode)
|
|
#+END_SRC
|
|
|
|
* Bullets
|
|
|
|
Show pretty bullets instead of the default asterisk characters.
|
|
|
|
** Load the contrib module
|
|
|
|
Org bullets isn't loaded when Org mode is by default, so I should
|
|
do that here.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(require 'org-bullets)
|
|
#+END_SRC
|
|
|
|
** Enable bullets in Org mode
|
|
|
|
Enable =org-bullets-mode= whenever =org-mode= starts.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(add-hook 'org-mode-hook 'org-bullets-mode)
|
|
#+END_SRC
|
|
|
|
* Org protocol
|
|
|
|
Load org-protocol to let external applications add information to
|
|
org.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(require 'org-protocol)
|
|
#+END_SRC
|
|
|
|
This template is used by Conkeror to capture a bookmark into my
|
|
bookmarks file.
|
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
(add-to-list 'org-capture-templates
|
|
'("b" "Bookmark" entry (file "~/documents/org/bookmarks.org")
|
|
"* %c\n\n %i"
|
|
:empty-lines 1))
|
|
#+END_SRC
|