Fix <s and <q org mode shortcuts
This commit is contained in:
parent
d54d16f98f
commit
a9265c931d
22
config.org
22
config.org
@ -251,16 +251,26 @@
|
|||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
* Org
|
* Org
|
||||||
I use a couple non-standard bits and pieces, but not a whole
|
** Code and Quote block shortcuts
|
||||||
bunch. I really like the =<s= to insert a source block thing (which
|
I am a big fan of using =<s= for source blocks and =<q= for quotes;
|
||||||
was deprecated); =org-tempo= brings that back.
|
these are enabled by the =org-tempo= module, which is included in
|
||||||
|
=org= but not loaded by default.
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package org
|
(use-package org :config (require 'org-tempo))
|
||||||
:config
|
|
||||||
(require 'org-tempo))
|
|
||||||
#+end_src
|
#+end_src
|
||||||
|
|
||||||
|
However, I have recently discovered, much to my despair, that these
|
||||||
|
shortcuts do not work if there are tabs in the line ahead of them!
|
||||||
|
Quite ridiculous. Easily worked around, however; I am going to
|
||||||
|
ensure that spaces are used for indentation when in org mode by
|
||||||
|
setting [[help:indent-tabs-mode][indent-tabs-mode]] to nil in a hook:
|
||||||
|
|
||||||
|
#+begin_src emacs-lisp
|
||||||
|
(add-hook 'org-mode-hook (lambda () (setq indent-tabs-mode nil)))
|
||||||
|
#+end_src
|
||||||
|
|
||||||
|
** Keybindings
|
||||||
A keybinding to add a new heading is super useful
|
A keybinding to add a new heading is super useful
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
Loading…
x
Reference in New Issue
Block a user