dotfiles

Personal dotfiles.
git clone git://vcs.sapka.me/dotfiles
Log | Files | Refs | Submodules

commit f3acdd2e9081e859e47bab16a4127968494a7058
parent 1783429ea4664f2595581311be8795c53364490e
Author: MichaƂ M. Sapka <michal@sapka.me>
Date:   Mon, 17 Apr 2023 18:12:58 +0200

A lot of changes

I forgot to commit them

Diffstat:
Abin/.local/bin/afew | 33+++++++++++++++++++++++++++++++++
Abin/.local/bin/arcsign | 33+++++++++++++++++++++++++++++++++
Abin/.local/bin/arcverify | 33+++++++++++++++++++++++++++++++++
Abin/.local/bin/chardetect | 33+++++++++++++++++++++++++++++++++
Abin/.local/bin/dkimsign | 33+++++++++++++++++++++++++++++++++
Abin/.local/bin/dkimverify | 33+++++++++++++++++++++++++++++++++
Abin/.local/bin/dknewkey | 33+++++++++++++++++++++++++++++++++
Memacs/.emacs.d/init.el | 129++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-----------
Mneomutt/.config/neomutt/neomuttrc | 1-
Anewsboat/.newsboat/queue | 1+
Mnewsboat/.newsboat/urls | 5+++++
Mzsh/.zshrc | 2+-
12 files changed, 350 insertions(+), 19 deletions(-)

diff --git a/bin/.local/bin/afew b/bin/.local/bin/afew @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'afew==3.0.2.dev33+gaa6661d','console_scripts','afew' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'afew==3.0.2.dev33+gaa6661d' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('afew==3.0.2.dev33+gaa6661d', 'console_scripts', 'afew')()) diff --git a/bin/.local/bin/arcsign b/bin/.local/bin/arcsign @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'dkimpy==1.0.5','console_scripts','arcsign' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'dkimpy==1.0.5' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('dkimpy==1.0.5', 'console_scripts', 'arcsign')()) diff --git a/bin/.local/bin/arcverify b/bin/.local/bin/arcverify @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'dkimpy==1.0.5','console_scripts','arcverify' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'dkimpy==1.0.5' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('dkimpy==1.0.5', 'console_scripts', 'arcverify')()) diff --git a/bin/.local/bin/chardetect b/bin/.local/bin/chardetect @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'chardet==5.1.0','console_scripts','chardetect' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'chardet==5.1.0' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('chardet==5.1.0', 'console_scripts', 'chardetect')()) diff --git a/bin/.local/bin/dkimsign b/bin/.local/bin/dkimsign @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'dkimpy==1.0.5','console_scripts','dkimsign' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'dkimpy==1.0.5' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('dkimpy==1.0.5', 'console_scripts', 'dkimsign')()) diff --git a/bin/.local/bin/dkimverify b/bin/.local/bin/dkimverify @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'dkimpy==1.0.5','console_scripts','dkimverify' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'dkimpy==1.0.5' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('dkimpy==1.0.5', 'console_scripts', 'dkimverify')()) diff --git a/bin/.local/bin/dknewkey b/bin/.local/bin/dknewkey @@ -0,0 +1,33 @@ +#!/Users/msapka/.asdf/installs/python/3.10.4/bin/python +# EASY-INSTALL-ENTRY-SCRIPT: 'dkimpy==1.0.5','console_scripts','dknewkey' +import re +import sys + +# for compatibility with easy_install; see #2198 +__requires__ = 'dkimpy==1.0.5' + +try: + from importlib.metadata import distribution +except ImportError: + try: + from importlib_metadata import distribution + except ImportError: + from pkg_resources import load_entry_point + + +def importlib_load_entry_point(spec, group, name): + dist_name, _, _ = spec.partition('==') + matches = ( + entry_point + for entry_point in distribution(dist_name).entry_points + if entry_point.group == group and entry_point.name == name + ) + return next(matches).load() + + +globals().setdefault('load_entry_point', importlib_load_entry_point) + + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(load_entry_point('dkimpy==1.0.5', 'console_scripts', 'dknewkey')()) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el @@ -1,5 +1,4 @@ - (prefer-coding-system 'utf-8) (set-default-coding-systems 'utf-8) (set-language-environment "UTF-8") @@ -33,11 +32,90 @@ (package-install 'use-package)) (require 'use-package) + +;; ASDF +(add-to-list 'exec-path "~/.asdf/shims") + +;; LSP +(use-package lsp-mode + :init + ;; set prefix for lsp-command-keymap (few alternatives - "C-l", "C-c l") + (setq lsp-keymap-prefix "C-c l") + :hook (;; replace XXX-mode with concrete major-mode(e. g. python-mode) + (typescriptreact-mode . lsp) + (typescript-moode . lsp) + (ruby-mode . lsp) + ;; if you want which-key integration + ) + :commands lsp) + +(use-package lsp-ltex + :ensure t + :hook (text-mode . (lambda () + (require 'lsp-ltex) + (lsp))) ; or lsp-deferred + :init + (setq lsp-ltex-version "16.0.0")) + +;; optionally +;;(use-package lsp-ui :commands lsp-ui-mode) +;; if you are helm user +;;(use-package helm-lsp :commands helm-lsp-workspace-symbol) +;; if you are ivy user +;;(use-package lsp-ivy :commands lsp-ivy-workspace-symbol) +(use-package lsp-treemacs :commands lsp-treemacs-errors-list) + +;; optionally if you want to use debugger +;;(use-package dap-mode) +;; (use-package dap-LANGUAGE) to load the dap adapter for your language + +;; General life improvements +(use-package which-key + :ensure t + :config + (which-key-setup-side-window-bottom) + (which-key-mode)) + +;; Treesitter +(use-package tree-sitter + :ensure t + :config + ;; activate tree-sitter on any buffer containing code for which it has a parser available + (global-tree-sitter-mode) + ;; you can easily see the difference tree-sitter-hl-mode makes for python, ts or tsx + ;; by switching on and off + (add-hook 'tree-sitter-after-on-hook #'tree-sitter-hl-mode)) + +(use-package tree-sitter-langs + :ensure t + :after tree-sitter) + +;; Flychekck +(use-package flycheck + :ensure t + :init (global-flycheck-mode)) + +(setq flycheck-command-wrapper-function + (lambda (command) + (append '("bundle" "exec") command))) + +;; Company mode +(use-package company + :after lsp-mode + :hook (prog-mode . company-mode) + :bind (:map company-active-map + ("<tab>" . company-complete-selection)) + (:map lsp-mode-map + ("<tab>" . company-indent-or-complete-common)) + :custom + (company-minimum-prefix-length 1) + (company-idle-delay 0.0)) + ;; Email (use-package notmuch - :commands notmuch-hello - :bind (("C-c m" . notmuch-hello)) - ) + :ensure t + :commands notmuch-hello + :bind (("C-c m" . notmuch-hello))) ;; IRC (use-package circe @@ -48,9 +126,10 @@ (require 'circe-rainbow) (require 'circe-probe)) (require 'circe-color-nicks) - (require 'circe-new-day-notifier) + (require 'circe-new-day-notifier) (require 'lui-irc-colors) - (setq circe-default-realname "https://michal.sapka.me" + (setq circe-default-realname "https://d-s.sh" + circe-default-user "d-s" circe-ignore-list nil circe-server-coding-system '(utf-8 . undecided) lui-max-buffer-size 30000 @@ -68,27 +147,40 @@ (lui-set-prompt (concat (propertize (concat (buffer-name) ">") 'face 'circe-prompt-face) - " "))) + " ")))) - ) +;; Music +(use-package bongo + :ensure t) -;; Magit -(use-package magit) +;; Git + +(use-package magit + :ensure t + :bind ("C-x g" . magit-status)) -;; Boring work stuff -(use-package robe) -(add-hook 'ruby-mode-hook 'robe-mode) (use-package git-gutter+ - :ensure git-gutter+ + :ensure t :diminish git-gutter+-mode :commands (git-gutter+-mode) :config (setq git-gutter+-hide-gutter nil)) (setq-default indent-tabs-mode nil) -(use-package org) -(setq use-package-always-ensure t) +(use-package org + :ensure t) + +(use-package org-roam + :ensure t + :init + (org-roam-db-autosync-mode) + :bind (("C-c n l" . org-roam-buffer-toggle) + ("C-c n f" . org-roam-node-find) + ("C-c n i" . org-roam-node-insert)) + :config + (org-roam-setup)) + (use-package nov) (add-to-list 'auto-mode-alist '("\\.epub\\'" . nov-mode)) @@ -98,10 +190,13 @@ ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. - '(package-selected-packages '(magit circe nov notmuch git-gutter+ robe use-package))) + '(package-selected-packages + '(org-roam lsp-ltex company typescript-mode tree-sitter-langs tree-sitter company-nmode asdf lsp-treemacs lsp-ivy lsp-ui lsp-mode which-key fido bongo magit circe nov notmuch git-gutter+ robe use-package)) + '(warning-suppress-log-types '((use-package)))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) + diff --git a/neomutt/.config/neomutt/neomuttrc b/neomutt/.config/neomutt/neomuttrc @@ -1,7 +1,6 @@ # vim: filetype=muttrc source ~/.config/neomutt/colors -source ~/.config/neomutt/accounts set sidebar_format = "%B%?F? [%F]?%* %?N?%N/?%S" diff --git a/newsboat/.newsboat/queue b/newsboat/.newsboat/queue @@ -0,0 +1 @@ +https://substackcdn.com/image/fetch/f_auto,q_auto:good,fl_progressive:steep/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb93e4289-a58c-4999-bd74-6719d3cefad4_1280x720.jpeg "/Users/msapka/https%3A%2F%2Fsubstack-post-media.s3.amazonaws.com%2Fpublic%2Fimages%2Fb93e4289-a58c-4999-bd74-6719d3cefad4_1280x720.jpeg" diff --git a/newsboat/.newsboat/urls b/newsboat/.newsboat/urls @@ -46,3 +46,8 @@ https://michal.sapka.me/index.xml https://a3nm.net/blog/feed.xml https://brainbaking.com/index.xml https://www.dosgameclub.com/category/episodes/feed/ +https://www.zendesk.com/public/assets/sitemaps/en/feed.xml +https://bt.ht/atom.xml +https://robert.bearblog.dev/feed/ +https://susam.net/blog/feed.xml +https://josem.co//articles/index.xml diff --git a/zsh/.zshrc b/zsh/.zshrc @@ -62,4 +62,4 @@ if [[ "$OSTYPE" == "darwin"* ]]; then fi export PATH=$PATH:~/.local/bin - +export PYTHONPATH=${PYTHONPATH}:$(brew --prefix)/opt/notmuch/libexec/lib/python3.11/site-packages