commit bef939b96f92295a16746b9ab63a641163a91c55
parent bb2b567a05947d8ac67c529b9ad39364f73921be
Author: Michał M. Sapka <michal@sapka.me>
Date: Fri, 2 Jun 2023 17:44:53 +0200
feat: add toc-org
Diffstat:
1 file changed, 44 insertions(+), 4 deletions(-)
diff --git a/emacs/.emacs.d/config.org b/emacs/.emacs.d/config.org
@@ -1,6 +1,32 @@
#+TITLE: Michał Sapka's Emacs Config
#+AUTHOR: Michał Sapka
-#+STARTUP: overview
+#+STARTUP: showall
+* Table of contents :toc:
+- [[#general-configuration][General configuration]]
+ - [[#lexical-binding][Lexical binding]]
+ - [[#package-management][Package management]]
+ - [[#encoding][Encoding]]
+ - [[#set-look-and-behavior][Set look and behavior]]
+ - [[#autocomplete-user-input][Autocomplete user input]]
+ - [[#asdf][ASDF]]
+ - [[#tree-sitter][Tree sitter]]
+ - [[#which-key][Which Key]]
+- [[#programing][Programing]]
+ - [[#git][Git]]
+ - [[#flycheck][Flycheck]]
+ - [[#company-mode][Company mode]]
+ - [[#indentation][Indentation]]
+ - [[#regrep][Regrep]]
+ - [[#lsp][LSP]]
+ - [[#ruby][Ruby]]
+- [[#using-emacs-as-a-shell][Using Emacs as a shell]]
+ - [[#email][Email]]
+ - [[#mastodon][Mastodon]]
+ - [[#rss][RSS]]
+ - [[#ebooks-reading][Ebooks reading]]
+- [[#org-mode][Org-mode]]
+ - [[#org-mode-1][Org-mode]]
+ - [[#toc-mode][TOC-mode]]
* General configuration
** Lexical binding
@@ -17,8 +43,8 @@
(require 'package)
(setq package-archives '(("melpa" . "https://melpa.org/packages/")
- ("org" . "https://orgmode.org/elpa/")
- ("elpa" . "https://elpa.gnu.org/packages/")))
+ ("org" . "https://orgmode.org/elpa/")
+ ("elpa" . "https://elpa.gnu.org/packages/")))
(package-initialize)
(unless package-archive-contents (package-refresh-contents))
@@ -30,6 +56,7 @@
(require 'use-package)
(use-package auto-package-update
+ :ensure t
:custom
(auto-package-update-interval 7)
(auto-package-update-prompt-before-update t)
@@ -130,7 +157,7 @@ I use ASDF as my unified version manager. It doesn't play nicely with Emacs out
(setq git-gutter:update-interval 0.02))
#+END_SRC
-** Flyckeck
+** Flycheck
#+BEGIN_SRC emacs-lisp
(use-package flycheck
@@ -327,6 +354,7 @@ Yeah, force indentation
* Org-mode
+** Org-mode
#+BEGIN_SRC emacs-lisp
(use-package org
:ensure t
@@ -336,3 +364,15 @@ Yeah, force indentation
(mkdir org-directory t))
)
#+END_SRC
+
+** TOC-mode
+
+A cool package which adds table of contents. Ref: [[https://github.com/snosov1/toc-org][repository]]
+
+#+BEGIN_SRC emacs-lisp
+ (use-package toc-org
+ :ensure t
+ :config
+ (add-hook 'org-mode-hook 'toc-org-mode)
+ )
+#+END_SRC