forked from colonelpanic/dotfiles
[Emacs] Add kat-mode
This commit is contained in:
parent
aee5f25ff4
commit
5f683cee8e
3
dotfiles/emacs.d/.gitignore
vendored
3
dotfiles/emacs.d/.gitignore
vendored
@ -10,6 +10,7 @@
|
||||
.tutor
|
||||
/eln-cache
|
||||
/transient
|
||||
/tree-sitter
|
||||
README.el
|
||||
README.html
|
||||
ac-comphist.dat
|
||||
@ -26,6 +27,7 @@ eproject.lst
|
||||
eshell
|
||||
ido.last
|
||||
jabber-avatar-cache
|
||||
kat-mode.el
|
||||
org-caldav-*
|
||||
org-caldav-backup.org
|
||||
org-config.el
|
||||
@ -49,4 +51,3 @@ uber.el
|
||||
url
|
||||
var
|
||||
xkcd
|
||||
/tree-sitter
|
||||
|
@ -40,6 +40,7 @@
|
||||
:config
|
||||
(setq max-specpdl-size 99999999))
|
||||
|
||||
(defvar imalison:kat-mode nil)
|
||||
(setq custom-file "~/.emacs.d/custom-before.el")
|
||||
(setq load-prefer-newer t)
|
||||
|
||||
@ -62,6 +63,11 @@
|
||||
(org-babel-load-file
|
||||
(concat (file-name-directory load-file-name) "README.org")))
|
||||
|
||||
(when imalison:kat-mode
|
||||
(let ((debug-on-error t))
|
||||
(org-babel-load-file
|
||||
(concat (file-name-directory load-file-name) "kat-mode.org"))))
|
||||
|
||||
(when imalison:do-benchmark (benchmark-init/deactivate))
|
||||
|
||||
;; Local Variables:
|
||||
|
56
dotfiles/emacs.d/kat-mode.org
Normal file
56
dotfiles/emacs.d/kat-mode.org
Normal file
@ -0,0 +1,56 @@
|
||||
* evil
|
||||
#+begin_src emacs-lisp
|
||||
(use-package evil
|
||||
:demand t
|
||||
:config
|
||||
(progn
|
||||
(evil-mode +1)))
|
||||
|
||||
(use-package evil-leader
|
||||
:demand t
|
||||
:config
|
||||
(global-evil-leader-mode))
|
||||
|
||||
(use-package evil-org
|
||||
:demand t
|
||||
:after (org evil-leader)
|
||||
:config
|
||||
(progn
|
||||
(add-hook 'org-mode-hook 'evil-org-mode)))
|
||||
#+end_src
|
||||
|
||||
This makes evil-mode play nice with org-fc
|
||||
#+begin_src emacs-lisp
|
||||
(use-package org-fc
|
||||
:demand t
|
||||
:config
|
||||
(progn
|
||||
(evil-define-minor-mode-key '(normal insert emacs) 'org-fc-review-flip-mode
|
||||
(kbd "RET") 'org-fc-review-flip
|
||||
(kbd "n") 'org-fc-review-flip
|
||||
(kbd "s") 'org-fc-review-suspend-card
|
||||
(kbd "q") 'org-fc-review-quit)
|
||||
|
||||
(evil-define-minor-mode-key '(normal insert emacs) 'org-fc-review-rate-mode
|
||||
(kbd "a") 'org-fc-review-rate-again
|
||||
(kbd "h") 'org-fc-review-rate-hard
|
||||
(kbd "g") 'org-fc-review-rate-good
|
||||
(kbd "e") 'org-fc-review-rate-easy
|
||||
(kbd "s") 'org-fc-review-suspend-card
|
||||
(kbd "q") 'org-fc-review-quit)))
|
||||
#+end_src
|
||||
|
||||
* Appearance
|
||||
#+begin_src emacs-lisp
|
||||
(setq imalison:dark-theme 'dracula)
|
||||
#+end_src
|
||||
|
||||
|
||||
* org-mode
|
||||
#+begin_src emacs-lisp
|
||||
(setq org-directory "~/org/") ; This is the directory where you want to save your Org files. Change as necessary.
|
||||
(setq org-capture-templates nil)
|
||||
(add-to-list 'org-capture-templates
|
||||
'("j" "Journal" entry (file+datetree "~/org/daily-journal.org")
|
||||
"* %?\nEntered on %U\n %i\n %a"))
|
||||
#+end_src
|
Loading…
Reference in New Issue
Block a user