Update org-mode config.
This commit is contained in:
parent
37f0df1b41
commit
9f6780de7f
16
emacs/emacs
16
emacs/emacs
@ -102,9 +102,10 @@
|
|||||||
line-number-mode t)
|
line-number-mode t)
|
||||||
|
|
||||||
;; Indentation
|
;; Indentation
|
||||||
; no tabs for indentation but two spaces.
|
; tabs for indentation.
|
||||||
(setq tab-width 2
|
(setq-default indent-tabs-mode nil)
|
||||||
indent-tabs-mode nil)
|
; tab width is 2 spaces.
|
||||||
|
(setq tab-width 2)
|
||||||
; make tab key do indent first then completion.
|
; make tab key do indent first then completion.
|
||||||
(setq-default tab-always-indent 'complete)
|
(setq-default tab-always-indent 'complete)
|
||||||
|
|
||||||
@ -295,7 +296,7 @@
|
|||||||
(package-install 'all-the-icons)
|
(package-install 'all-the-icons)
|
||||||
(all-the-icons-install-fonts))
|
(all-the-icons-install-fonts))
|
||||||
:config
|
:config
|
||||||
(setq neo-theme (if (display-graphic-p) 'nerd 'arrow)))
|
(setq neo-theme (if (display-graphic-p) 'icons 'arrow)))
|
||||||
|
|
||||||
;; Org
|
;; Org
|
||||||
(use-package org
|
(use-package org
|
||||||
@ -323,7 +324,7 @@
|
|||||||
'((:startgroup . nil)
|
'((:startgroup . nil)
|
||||||
("@TRAVAIL" . ?t)
|
("@TRAVAIL" . ?t)
|
||||||
("@MAISON" . ?m)
|
("@MAISON" . ?m)
|
||||||
(:endgroup . nil)
|
(:endgroup . nil)
|
||||||
(:startgroup . nil)
|
(:startgroup . nil)
|
||||||
("ADMINISTRATIF" . ?a)
|
("ADMINISTRATIF" . ?a)
|
||||||
("COURS" . ?c)
|
("COURS" . ?c)
|
||||||
@ -354,7 +355,7 @@
|
|||||||
'("devoir"
|
'("devoir"
|
||||||
"\\documentclass{cours_devoir}"
|
"\\documentclass{cours_devoir}"
|
||||||
("\\section{%s}" . "\\section*{%s}")
|
("\\section{%s}" . "\\section*{%s}")
|
||||||
("\\subsection{%s}" . "\\subsection*{%s}")
|
("\\subsection{%s}" . "\\subsection*{%s}")
|
||||||
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
|
||||||
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
("\\paragraph{%s}" . "\\paragraph*{%s}")
|
||||||
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
|
||||||
@ -605,6 +606,8 @@ With two PREFIX arguments, write out the day and month name."
|
|||||||
:ensure t)
|
:ensure t)
|
||||||
(use-package melancholy-theme
|
(use-package melancholy-theme
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
(use-package org-beautify-theme
|
||||||
|
:ensure t)
|
||||||
(use-package sourcerer-theme
|
(use-package sourcerer-theme
|
||||||
:ensure t)
|
:ensure t)
|
||||||
(use-package sublime-themes
|
(use-package sublime-themes
|
||||||
@ -617,6 +620,7 @@ With two PREFIX arguments, write out the day and month name."
|
|||||||
(add-hook 'latex-mode-hook 'my-enable-minor-modes)
|
(add-hook 'latex-mode-hook 'my-enable-minor-modes)
|
||||||
(add-hook 'lua-mode-hook 'my-enable-minor-modes)
|
(add-hook 'lua-mode-hook 'my-enable-minor-modes)
|
||||||
(add-hook 'org-mode-hook 'my-enable-minor-modes)
|
(add-hook 'org-mode-hook 'my-enable-minor-modes)
|
||||||
|
(add-hook 'org-mode-hook (lambda() (load-theme 'org-beautify)))
|
||||||
(add-hook 'shell-mode-hook 'my-enable-minor-modes)
|
(add-hook 'shell-mode-hook 'my-enable-minor-modes)
|
||||||
(add-hook 'text-mode-hook 'my-enable-minor-modes)
|
(add-hook 'text-mode-hook 'my-enable-minor-modes)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user