Compare commits
No commits in common. "c1f05214883746447dc73d3dcf30ba15684f9305" and "f84d21d67e7e78f1caac5d78b8aeb94594e75cd3" have entirely different histories.
c1f0521488
...
f84d21d67e
|
@ -60,17 +60,17 @@
|
|||
(find-file (car org-cite-global-bibliography)))
|
||||
(keymap-global-set "C-c w b" #'my/open-global-bibliography)
|
||||
#+end_src
|
||||
** RSS feeds directory
|
||||
** RSS feeds file
|
||||
#+begin_src emacs-lisp
|
||||
;; Elfeed feeds directory shortcut
|
||||
(defun my/open-feeds-directory ()
|
||||
"Open directory containing elfeed sources."
|
||||
;; Elfeed feeds file shortcut
|
||||
(defun my/open-feeds-file ()
|
||||
"Open org file containing elfeed sources."
|
||||
(interactive)
|
||||
(require 'org)
|
||||
(require 'elfeed)
|
||||
(require 'elfeed-org)
|
||||
(find-file (file-name-directory (car rmh-elfeed-org-files))))
|
||||
(keymap-global-set "C-c w f" #'my/open-feeds-directory)
|
||||
(find-file (expand-file-name "feeds.org" org-directory)))
|
||||
(keymap-global-set "C-c w f" #'my/open-feeds-file)
|
||||
#+end_src
|
||||
** Documents and Downloads
|
||||
#+begin_src emacs-lisp
|
||||
|
|
|
@ -88,6 +88,10 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
|||
:fuzzy t)
|
||||
:jedi_definition (:enabled t)
|
||||
:jedi_hover (:enabled t)))
|
||||
:pyright ( :disableOrganizeImports t) ; Use isort instead
|
||||
:python.analysis ( :autoImportCompletions t
|
||||
:diagnosticMode "openFilesOnly" ; Better single-file support
|
||||
:typeCheckingMode "off") ; Use mypy instead
|
||||
:nil ( :nix
|
||||
( :maxMemoryMB nil
|
||||
:flake
|
||||
|
@ -115,8 +119,8 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
|||
:config
|
||||
(add-to-list 'apheleia-formatters '(alejandra . ("alejandra")))
|
||||
(add-to-list 'apheleia-mode-alist '(nix-mode . alejandra))
|
||||
(add-to-list 'apheleia-mode-alist '(python-mode . (ruff ruff-isort)))
|
||||
(add-to-list 'apheleia-mode-alist '(python-ts-mode . (ruff ruff-isort))))
|
||||
(add-to-list 'apheleia-mode-alist '(python-mode . ruff))
|
||||
(add-to-list 'apheleia-mode-alist '(python-ts-mode . ruff)))
|
||||
#+end_src
|
||||
* Flymake
|
||||
#+begin_src emacs-lisp :tangle yes
|
||||
|
@ -157,6 +161,11 @@ Set treesit to fontify all elements, default was 3 (out of 4)
|
|||
"--warn-unreachable"
|
||||
"--show-error-codes"
|
||||
"--no-color-output")))
|
||||
(with-eval-after-load 'python
|
||||
(add-hook 'python-base-mode-hook
|
||||
(defun python-mode-setup-flymake ()
|
||||
(require 'flymake-collection)
|
||||
(add-hook 'flymake-diagnostic-functions 'flymake-collection-mypy nil t))))
|
||||
#+end_src
|
||||
|
||||
** shellcheck
|
||||
|
|
|
@ -76,12 +76,6 @@ For reference information, see [[https://orgmode.com][Org-mode website]]
|
|||
("r" "Reading List" entry
|
||||
(file+olp+datetree "reading.org" "Inbox")
|
||||
"* %?")
|
||||
("d" "Diary Event" entry
|
||||
(file+datetree "diary.org")
|
||||
"* %?\n%^T")
|
||||
("#" "used by gnus-icalendar-org" entry
|
||||
(file+datetree "diary.org")
|
||||
"%i" :immediate-finish t)
|
||||
("m" "Email Workflow")
|
||||
("mf" "Follow Up" entry
|
||||
(file+olp+datetree "tasks.org" "Inbox")
|
||||
|
@ -164,7 +158,10 @@ Better syncing to mobile, for use with [[https://github.com/orgzly-revived/orgzl
|
|||
(setq org-mobile-directory "~/.orgmobile/"
|
||||
org-mobile-capture-file "inbox.org"
|
||||
org-mobile-agendas nil
|
||||
org-mobile-files (list (expand-file-name "diary.org" org-directory))
|
||||
org-mobile-files (list (expand-file-name "diary.org" org-directory)
|
||||
(expand-file-name "notes.org" org-directory)
|
||||
(expand-file-name "tasks.org" org-directory)
|
||||
(expand-file-name "reading.org" org-directory))
|
||||
org-mobile-inbox-for-pull (expand-file-name "inbox.org" org-directory)
|
||||
org-mobile-force-id-on-agenda-items nil)
|
||||
(add-hook 'org-capture-finalize-hook #'org-mobile-push))
|
||||
|
|
11
templates
11
templates
|
@ -177,13 +177,10 @@ nix-mode
|
|||
(p (completing-read "Platform: " '("all" "allBut" "arm" "cygwin" "darwin" "freebsd" "gnu" "i686" "illumos" "linux" "mesaPlatforms" "mips" "netbsd" "none" "openbsd" "unix" "x86"))) ";" n> q "};" n> "}"
|
||||
)
|
||||
(pythonshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};"
|
||||
n> "with python3Packages;"
|
||||
n> "mkShellNoCC {"
|
||||
n> "packages = ["
|
||||
n> "(" (p "python3") ".withPackages"
|
||||
n> "(ps: with ps; ["(p "python-lsp-server isort mypy") "]))"
|
||||
n> q
|
||||
n> "];"
|
||||
n> "}")
|
||||
n> "packages = [" (p) "];"
|
||||
n> "};")
|
||||
(poetryshell "with import (builtins.getFlake \"github:nixos/nixpkgs" (p "/23.11")"\") {};"
|
||||
n "with (builtins.getFlake \"github:nix-community/poetry2nix\").lib.mkPoetry2Nix {inherit pkgs;};"
|
||||
n> "(mkPoetryEnv rec {"
|
||||
|
@ -191,7 +188,7 @@ nix-mode
|
|||
n> "preferWheels = true;"
|
||||
n> "extras = [\"*\"];"
|
||||
n> "editablePackageSources = {" (p "package") "=projectDir;};"
|
||||
n> "extraPackages = ps: with ps; [" (p "python-lsp-server isort mypy")"];"
|
||||
n> "extraPackages = ps: with ps; [" (p "isort mypy")"];"
|
||||
n> "})"
|
||||
n> ".env")
|
||||
|
||||
|
|
Loading…
Reference in a new issue