This commit is contained in:
Jeffrey Serio 2023-09-15 16:07:58 -05:00
parent faf50effff
commit ff06ad2ecc
2 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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