Emacs: add fancy org shit

This commit is contained in:
Marco Thomas
2021-06-30 12:58:21 +02:00
parent c682c1a20e
commit 7781640dbc
3 changed files with 13 additions and 10 deletions

View File

@@ -47,4 +47,5 @@ set render-loading-fg "#3c3836" # fg
# Recolor book content's color # Recolor book content's color
set recolor-lightcolor "#f2e5bc" # bg set recolor-lightcolor "#f2e5bc" # bg
set recolor-darkcolor "#3c3836" # fg set recolor-darkcolor "#3c3836" # fg
set recolor "false" set recolor "true"
set recolor-keephue "true"

View File

@@ -13,13 +13,9 @@ let mapleader = "\<Space>"
call plug#begin() call plug#begin()
Plug 'morhetz/gruvbox' " color scheme Plug 'morhetz/gruvbox' " color scheme
Plug 'tpope/vim-sleuth' " heuristic file indendation Plug 'tpope/vim-sleuth' " heuristic file indendation
Plug 'jiangmiao/auto-pairs' " pair completion Plug 'jiangmiao/auto-pairs' " pair completion
Plug 'airblade/vim-gitgutter' " show git changes
call plug#end() call plug#end()
" ============================== Colors " ============================== Colors
@@ -27,7 +23,6 @@ syntax on
set background=light set background=light
colorscheme gruvbox colorscheme gruvbox
hi Normal ctermbg=NONE guibg=NONE hi Normal ctermbg=NONE guibg=NONE
set termguicolors
" ============================== General " ============================== General
filetype indent plugin on filetype indent plugin on
@@ -52,7 +47,7 @@ set wildmenu " autocomplete :e
set scrolloff=5 " min lines above or below the cursor set scrolloff=5 " min lines above or below the cursor
" ============================== Statusline " ============================== Statusline
set laststatus=2 set laststatus=0
set showtabline=0 set showtabline=0
" ============================== Indents and Whitespaces " ============================== Indents and Whitespaces

View File

@@ -34,6 +34,7 @@
;; this is the default ;; this is the default
display-line-numbers-current-absolute t) display-line-numbers-current-absolute t)
(defun noct:relative () (defun noct:relative ()
(setq-local display-line-numbers 'visual)) (setq-local display-line-numbers 'visual))
@@ -86,7 +87,6 @@
(setq ispell-dictionary "de_DE,en_GB,en_US") (setq ispell-dictionary "de_DE,en_GB,en_US")
(ispell-set-spellchecker-params) (ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US") (ispell-hunspell-add-multi-dic "de_DE,en_GB,en_US")
(setq )
:hook :hook
(org-mode . flyspell-mode) (org-mode . flyspell-mode)
(markdown-mode . flyspell-mode) (markdown-mode . flyspell-mode)
@@ -237,8 +237,8 @@
"oco" 'org-clock-out "oco" 'org-clock-out
"oa" 'org-agenda "oa" 'org-agenda
"oca" 'org-capture) "oca" 'org-capture)
;;:hook :hook
;;(org-mode . (lambda () (electric-indent-local-mode -1))) (org-mode . (lambda () (electric-indent-local-mode -1)))
:config :config
(setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5)) (setq org-format-latex-options (plist-put org-format-latex-options :scale 1.5))
(setq org-agenda-files (quote ("~/org"))) (setq org-agenda-files (quote ("~/org")))
@@ -257,6 +257,13 @@
("u" "University" entry (file "~/org/uni.org") "* TODO %?\n") ("u" "University" entry (file "~/org/uni.org") "* TODO %?\n")
("p" "Personal" entry (file "~/org/personal.org") "* TODO %?\n"))))) ("p" "Personal" entry (file "~/org/personal.org") "* TODO %?\n")))))
(org-babel-do-load-languages
'org-babel-load-languages '((python . t)
(haskell . t)
(shell . t)
(perl . t)
(C . t)))
(use-package org-bullets (use-package org-bullets
:ensure t :ensure t
:after org :after org