add CUSOTM_IDs to make toc links work in Emacs
[~bandali/configs] / emacs / init.org
index db79586..1e44cab 100644 (file)
@@ -5,9 +5,18 @@
 
 TODO: description
 
-TODO: toc
+* Contents                                                   :toc_1:noexport:
+
+- [[#intro][Intro]]
+- [[#header][Header]]
+- [[#initial-setup][Initial setup]]
+- [[#config][Config]]
+- [[#footer][Footer]]
 
 * Header
+:PROPERTIES:
+:CUSTOM_ID: header
+:END:
 
 ** First line
 
@@ -51,6 +60,9 @@ file.
 #+end_src
 
 * Initial setup
+:PROPERTIES:
+:CUSTOM_ID: initial-setup
+:END:
 
 #+begin_src emacs-lisp :comments none
 ;;; Code:
@@ -91,7 +103,7 @@ Reset the variables back to default after init.
 
 ** Package management
 
-*** [[https://github.com/raxod502/straight.el][=straight.el=]]
+*** =straight.el=
 
 #+begin_quote
 Next-generation, purely functional package manager for the Emacs
@@ -189,6 +201,22 @@ it it's own file.
   (load custom-file))
 #+end_src
 
+** Backups
+
+Emacs' default backup settings aren't that great. Let's use more
+sensible options. See documentation for the ~make-backup-file~
+variable.
+
+#+begin_src emacs-lisp
+(setq backup-by-copying t
+      version-control t)
+#+end_src
+
+* Config
+:PROPERTIES:
+:CUSTOM_ID: config
+:END:
+
 ** Org
 
 #+begin_src emacs-lisp
@@ -198,6 +226,9 @@ it it's own file.
 #+end_src
 
 * Footer
+:PROPERTIES:
+:CUSTOM_ID: footer
+:END:
 
 #+begin_src emacs-lisp :comments none
 ;;; init.el ends here