iron out some minor stuff after transition
This commit is contained in:
parent
f7538e08a5
commit
0d408201cb
1 changed files with 27 additions and 15 deletions
38
init.el
38
init.el
|
@ -49,6 +49,10 @@
|
||||||
(fset 'yes-or-no-p 'y-or-n-p)
|
(fset 'yes-or-no-p 'y-or-n-p)
|
||||||
(setq confirm-nonexistent-file-or-buffer nil)
|
(setq confirm-nonexistent-file-or-buffer nil)
|
||||||
|
|
||||||
|
(if window-system
|
||||||
|
(progn
|
||||||
|
(straight-use-package 'zenburn-theme)
|
||||||
|
(load-theme 'zenburn t)))
|
||||||
(set-face-italic 'font-lock-comment-face 1)
|
(set-face-italic 'font-lock-comment-face 1)
|
||||||
(set-face-italic 'font-lock-comment-delimiter-face nil)
|
(set-face-italic 'font-lock-comment-delimiter-face nil)
|
||||||
|
|
||||||
|
@ -211,10 +215,10 @@
|
||||||
("n" "note" entry
|
("n" "note" entry
|
||||||
(file+headline "~/nextcloud/org/random.org" "Notes")
|
(file+headline "~/nextcloud/org/random.org" "Notes")
|
||||||
"** %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n")
|
"** %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n\n")
|
||||||
("it" "IFW TODO" entry
|
("W" "IFW TODO" entry
|
||||||
(file+headline "~/Seafile/ORG/ifw.org" "ifw-tasks")
|
(file+headline "~/Seafile/ORG/ifw.org" "ifw-tasks")
|
||||||
"** TODO %?\n%i\n%U")
|
"** TODO %?\n%i\n%U")
|
||||||
("in" "IFW Note" entry
|
("w" "IFW Note" entry
|
||||||
(file+headline "~/Seafile/ORG/ifw.org" "ifw-notes")
|
(file+headline "~/Seafile/ORG/ifw.org" "ifw-notes")
|
||||||
"** %?\n%i\n%U\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
|
"** %?\n%i\n%U\n:PROPERTIES:\n:CREATED: %U\n:END:\n")
|
||||||
("j" "Journal" entry
|
("j" "Journal" entry
|
||||||
|
@ -224,12 +228,12 @@
|
||||||
(file+headline "~/nextcloud/org/bookmarks.org" "bookmarks-inbox")
|
(file+headline "~/nextcloud/org/bookmarks.org" "bookmarks-inbox")
|
||||||
"** TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n[[%x]]\n")))
|
"** TODO %?\n:PROPERTIES:\n:CREATED: %U\n:END:\n[[%x]]\n")))
|
||||||
((string= oxa-workplace "work")
|
((string= oxa-workplace "work")
|
||||||
'(("it" "IFW TODO" entry
|
'(("t" "IFW TODO" entry
|
||||||
(file+headline "D:/Seafile/ORG/ifw.org" "ifw-tasks")
|
(file+headline "D:/Seafile/ORG/ifw.org" "ifw-tasks")
|
||||||
"** TODO %?\n%i\n%U")
|
"** TODO %?\n%i\n%U")
|
||||||
("in" "IFW Note" entry
|
("n" "IFW Note" entry
|
||||||
(file+headline "D:/Seafile/ORG/ifw.org" "ifw-notes")
|
(file+headline "D:/Seafile/ORG/ifw.org" "ifw-notes")
|
||||||
"** %?\n%i\n%U\n:PROPERTIES:\n:CREATED: %U\n:END:\n")))))
|
"** %?\n%i\n%U\n")))))
|
||||||
;; autosave advises for agenda and org-capture
|
;; autosave advises for agenda and org-capture
|
||||||
(advice-add 'org-agenda-quit :before 'org-save-all-org-buffers)
|
(advice-add 'org-agenda-quit :before 'org-save-all-org-buffers)
|
||||||
(advice-add 'org-capture-finalize :after 'org-save-all-org-buffers)
|
(advice-add 'org-capture-finalize :after 'org-save-all-org-buffers)
|
||||||
|
@ -269,11 +273,9 @@
|
||||||
(use-package ispell
|
(use-package ispell
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(setenv "LANG" "en_US")
|
(setq-default ispell-program-name (if (string= oxa-workplace "work")
|
||||||
(setq-default ispell-program-name "hunspell")
|
oxa-work-aspell
|
||||||
(setq ispell-dictionary "en_US,ru_RU,de_DE")
|
"aspell")))
|
||||||
(ispell-set-spellchecker-params)
|
|
||||||
(ispell-hunspell-add-multi-dic "en_US,ru_RU,de_DE"))
|
|
||||||
|
|
||||||
(use-package flyspell
|
(use-package flyspell
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -288,7 +290,8 @@
|
||||||
:straight t
|
:straight t
|
||||||
:hook (('prog-mode . 'comment-tags-mode)
|
:hook (('prog-mode . 'comment-tags-mode)
|
||||||
('markdown-mode . 'comment-tags-mode)
|
('markdown-mode . 'comment-tags-mode)
|
||||||
('tex-mode . 'comment-tags-mode))
|
('tex-mode . 'comment-tags-mode)
|
||||||
|
('latex-mode . 'comment-tags-mode))
|
||||||
:init
|
:init
|
||||||
(setq comment-tags-require-colon 0))
|
(setq comment-tags-require-colon 0))
|
||||||
|
|
||||||
|
@ -327,10 +330,11 @@
|
||||||
("\\.md\\'" . markdown-mode)
|
("\\.md\\'" . markdown-mode)
|
||||||
("\\.markdown\\'" . markdown-mode)))
|
("\\.markdown\\'" . markdown-mode)))
|
||||||
|
|
||||||
(use-package direnv
|
(if (not (string= system-type "windows-nt"))
|
||||||
|
(use-package direnv
|
||||||
:straight t
|
:straight t
|
||||||
:config
|
:config
|
||||||
(direnv-mode))
|
(direnv-mode)))
|
||||||
|
|
||||||
(use-package editorconfig
|
(use-package editorconfig
|
||||||
:straight t
|
:straight t
|
||||||
|
@ -344,6 +348,14 @@
|
||||||
:config
|
:config
|
||||||
(nyan-mode 1))
|
(nyan-mode 1))
|
||||||
|
|
||||||
|
;; python stuff
|
||||||
|
(setq python-shell-interpreter "python")
|
||||||
|
(setq python-shell-interpreter-args "-m IPython --simple-prompt -i")
|
||||||
|
(setq flycheck-python-pycompile-executable "python")
|
||||||
|
|
||||||
|
;; fill column
|
||||||
|
(setq-default fill-column 80)
|
||||||
|
|
||||||
;; throw away all the list-of-custom-shit!
|
;; throw away all the list-of-custom-shit!
|
||||||
(setq custom-file "~/.emacs.d/custom.el")
|
(setq custom-file "~/.emacs.d/custom.el")
|
||||||
(load custom-file 'noerror)
|
(load custom-file 'noerror)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue