mirror of
https://codeberg.org/hyperreal/doom-emacs-config
synced 2024-11-01 16:53:07 +01:00
Update
This commit is contained in:
parent
faf50effff
commit
aea438c838
14
config.el
14
config.el
@ -224,6 +224,7 @@ If point was already at that position, move point to beginning of line."
|
||||
|
||||
(setq org-directory "~/sync/org/")
|
||||
(setq org-default-notes-file "~/sync/org/inbox.org")
|
||||
(setq org-agenda-files '("~/sync/org/inbox.org"))
|
||||
|
||||
;; support selecting lines by using shift
|
||||
(setq org-support-shift-select t)
|
||||
@ -231,7 +232,7 @@ If point was already at that position, move point to beginning of line."
|
||||
;; org-mode tags
|
||||
(setq org-tag-alist (quote (("@archiving" .?a)
|
||||
("@calendar" .?d)
|
||||
("@computing" . ?c)
|
||||
("@config" . ?c)
|
||||
("@errand" . ?e)
|
||||
("@fedora" . ?f)
|
||||
("@homelab" . ?l)
|
||||
@ -387,11 +388,18 @@ If point was already at that position, move point to beginning of line."
|
||||
(require 'lsp-pyright)
|
||||
(lsp)))
|
||||
|
||||
;; autoformat on save with yapf
|
||||
(defun run-black-pep8 ()
|
||||
"Run `black -l 79' on the current Python file."
|
||||
(interactive)
|
||||
(shell-command-to-string
|
||||
(format "black -l 79 %s"
|
||||
(shell-quote-argument (buffer-file-name)))))
|
||||
|
||||
;; autoformat on save with `run-black-pep8'
|
||||
(add-hook 'elpy-mode-hook
|
||||
(lambda ()
|
||||
(add-hook 'before-save-hook
|
||||
'elpy-yapf-fix-code nil t)))
|
||||
'run-black-pep8)))
|
||||
|
||||
;; colorize compilation buffer
|
||||
;; from https://sachachua.com/dotemacs/index.html#orga33bac5
|
||||
|
2
init.el
2
init.el
@ -158,7 +158,7 @@
|
||||
;;php ; perl's insecure younger brother
|
||||
;;plantuml ; diagrams for confusing people more
|
||||
;;purescript ; javascript, but functional
|
||||
python ; beautiful is better than ugly
|
||||
(python +lsp +pyright) ; beautiful is better than ugly
|
||||
;;qt ; the 'cutest' gui framework ever
|
||||
;;racket ; a DSL for DSLs
|
||||
;;raku ; the artist formerly known as perl6
|
||||
|
Loading…
Reference in New Issue
Block a user