emacs.d

bloated emacs configuration
git clone git://git.ckyln.com/~cem/emacs.d.git
Log | Files | Refs | README

commit 965c0ee87b486fe3a56629826cbbd140486bd1fc
parent cc86067135c92367b0fd35ed5858b1665e0ce13c
Author: Cem Keylan <cem@ckyln.com>
Date:   Tue,  3 Mar 2020 15:41:46 +0300

add table-of-contents

Diffstat:
Minit.org | 41+++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+), 0 deletions(-)

diff --git a/init.org b/init.org @@ -3,6 +3,33 @@ #+BABEL: :cache yes #+PROPERTY: header-args :tangle yes +* Table of Contents :TOC: +- [[#intro][Intro]] + - [[#installation-instructions][Installation Instructions]] + - [[#ignoring-initel-changes-on-git][Ignoring init.el changes on Git]] + - [[#meta][Meta]] +- [[#startup-settings][Startup Settings]] + - [[#use-package][use-package]] + - [[#custom-file][Custom-file]] + - [[#private-file][Private file]] + - [[#starting-the-server][Starting the server]] +- [[#packages][Packages]] + - [[#evil-mode][Evil-mode]] + - [[#org-mode][Org-mode]] + - [[#magit][Magit]] + - [[#flycheck][Flycheck]] + - [[#company-mode][Company Mode]] + - [[#extras][Extras]] +- [[#filetype-configurations][Filetype Configurations]] + - [[#default-formatting][Default Formatting]] + - [[#markdown][Markdown]] + - [[#shell][Shell]] +- [[#other-settings][Other Settings]] + - [[#dired----ls-dired][Dired -- ls dired]] + - [[#backup-options][Backup Options]] + - [[#enable-diary-appointment-alarms][Enable diary appointment alarms]] + - [[#set-browser][Set Browser]] + * Intro This is my emacs configuration file, I used to have a big directory of lisp code but it became harder to maintain @@ -332,6 +359,20 @@ that. (use-package htmlize :ensure t) #+END_SRC +*** toc-org + +I want to have a basic table-of-contents generation on my org-files +even without exporting the file itself. This is also useful for the +Github README. + +#+BEGIN_SRC emacs-lisp +(use-package toc-org + :ensure t + :config + (if (require 'toc-org nil t) + (add-hook 'org-mode-hook 'toc-org-mode))) +#+END_SRC + * Filetype Configurations I would like to have some different configurations for filetypes. Those