This commit is contained in:
Jeffrey Serio 2023-09-15 16:00:22 -05:00
parent faf50effff
commit aea438c838
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-directory "~/sync/org/")
(setq org-default-notes-file "~/sync/org/inbox.org") (setq org-default-notes-file "~/sync/org/inbox.org")
(setq org-agenda-files '("~/sync/org/inbox.org"))
;; support selecting lines by using shift ;; support selecting lines by using shift
(setq org-support-shift-select t) (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 ;; org-mode tags
(setq org-tag-alist (quote (("@archiving" .?a) (setq org-tag-alist (quote (("@archiving" .?a)
("@calendar" .?d) ("@calendar" .?d)
("@computing" . ?c) ("@config" . ?c)
("@errand" . ?e) ("@errand" . ?e)
("@fedora" . ?f) ("@fedora" . ?f)
("@homelab" . ?l) ("@homelab" . ?l)
@ -387,11 +388,18 @@ If point was already at that position, move point to beginning of line."
(require 'lsp-pyright) (require 'lsp-pyright)
(lsp))) (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 (add-hook 'elpy-mode-hook
(lambda () (lambda ()
(add-hook 'before-save-hook (add-hook 'before-save-hook
'elpy-yapf-fix-code nil t))) 'run-black-pep8)))
;; colorize compilation buffer ;; colorize compilation buffer
;; from https://sachachua.com/dotemacs/index.html#orga33bac5 ;; from https://sachachua.com/dotemacs/index.html#orga33bac5

View File

@ -158,7 +158,7 @@
;;php ; perl's insecure younger brother ;;php ; perl's insecure younger brother
;;plantuml ; diagrams for confusing people more ;;plantuml ; diagrams for confusing people more
;;purescript ; javascript, but functional ;;purescript ; javascript, but functional
python ; beautiful is better than ugly (python +lsp +pyright) ; beautiful is better than ugly
;;qt ; the 'cutest' gui framework ever ;;qt ; the 'cutest' gui framework ever
;;racket ; a DSL for DSLs ;;racket ; a DSL for DSLs
;;raku ; the artist formerly known as perl6 ;;raku ; the artist formerly known as perl6