From 9cb7935d24938905786c967be76387c9308b6897 Mon Sep 17 00:00:00 2001 From: Levi Neely <141506390+lneely@users.noreply.github.com> Date: Sun, 15 Sep 2024 17:48:07 +0200 Subject: [PATCH] comments and deps --- emacs/feature/feature-alioth.el | 12 ++++++++++-- emacs/feature/feature-apitest.el | 6 ++++++ emacs/feature/feature-async.el | 10 ++++++++++ emacs/feature/feature-automount.el | 8 ++++++++ emacs/feature/feature-avy.el | 9 +++++++++ emacs/feature/feature-base.el | 2 +- emacs/feature/feature-browser.el | 6 ++++++ emacs/feature/feature-ctags.el | 9 +++++++++ emacs/feature/feature-denote-index.el | 3 ++- emacs/feature/feature-denote-multidir.el | 1 + emacs/feature/feature-denote.el | 1 + emacs/feature/feature-embark.el | 8 ++++++++ emacs/feature/feature-eyecandy.el | 9 +++++++++ emacs/feature/feature-golang-playground.el | 9 +++++++++ emacs/feature/feature-golang.el | 9 +++++++++ emacs/feature/feature-graphviz.el | 9 +++++++++ emacs/feature/feature-json.el | 9 +++++++++ emacs/feature/feature-keybindings.el | 0 emacs/feature/feature-kotlin.el | 8 ++++++++ emacs/feature/feature-llm.el | 11 ++++++++++- emacs/feature/feature-lmtf.el | 8 ++++++++ emacs/feature/feature-pkg.el | 7 +++++++ emacs/feature/feature-plantuml.el | 8 ++++++++ emacs/feature/feature-protobuf.el | 8 ++++++++ emacs/feature/feature-python.el | 9 +++++++++ emacs/feature/feature-rego.el | 9 +++++++++ emacs/feature/feature-sidebar.el | 0 emacs/feature/feature-snippets.el | 9 +++++++++ emacs/feature/feature-web.el | 8 ++++++++ emacs/feature/feature-which-key.el | 9 +++++++++ emacs/feature/feature-yaml.el | 8 ++++++++ 31 files changed, 217 insertions(+), 5 deletions(-) delete mode 100644 emacs/feature/feature-keybindings.el delete mode 100644 emacs/feature/feature-sidebar.el diff --git a/emacs/feature/feature-alioth.el b/emacs/feature/feature-alioth.el index fe2d779..45086d8 100644 --- a/emacs/feature/feature-alioth.el +++ b/emacs/feature/feature-alioth.el @@ -1,3 +1,11 @@ +;;; feature-alioth.el --- alioth automount -*- lexical-binding: t; -*- +;;; +;;; Commentary: +;;; Automount alioth on demand. +;;; +;;; Code: + + (defun ensure-alioth-mounted () "Check if ~/alioth is mounted, and if not, mount it." (unless (file-exists-p "~/alioth/.exists") @@ -27,6 +35,6 @@ (expand-file-name default-directory)) (ensure-alioth-mounted)))) - - (provide 'feature-alioth) + +;;; feature-alioth.el ends here. diff --git a/emacs/feature/feature-apitest.el b/emacs/feature/feature-apitest.el index 9ab0d8a..75c0573 100644 --- a/emacs/feature/feature-apitest.el +++ b/emacs/feature/feature-apitest.el @@ -1,5 +1,11 @@ +;;; feature-apitest.el --- Brief description -*- lexical-binding: t; -*- + +;;; Code: + (require 'feature-pkg) (pkg/require 'plz) (provide 'feature-apitest) + +;;; feature-apitest.el ends here. diff --git a/emacs/feature/feature-async.el b/emacs/feature/feature-async.el index 56431be..cbc5f80 100644 --- a/emacs/feature/feature-async.el +++ b/emacs/feature/feature-async.el @@ -1,4 +1,14 @@ +;;; feature-async.el --- async functionality -*- lexical-binding: t; -*- + +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'async) (pkg/require 'async-status) (provide 'feature-async) + +;;; feature-async.el ends here. diff --git a/emacs/feature/feature-automount.el b/emacs/feature/feature-automount.el index b26e00f..db18fed 100644 --- a/emacs/feature/feature-automount.el +++ b/emacs/feature/feature-automount.el @@ -1,3 +1,9 @@ +;;; feature-alioth.el --- alioth automounts -*- lexical-binding: t; -*- + +;;; Commentary: + +;;; Code: + (defun ensure-alioth-mounted () "Check if ~/alioth is mounted, and if not, mount it." (unless (file-exists-p "~/alioth/.exists") @@ -16,3 +22,5 @@ (shell-command "sshfs lkn@alioth.uberspace.de:/home/lkn/ ~/alioth"))) (provide 'feature-alioth) + +;;; feature-alioth.el ends here. diff --git a/emacs/feature/feature-avy.el b/emacs/feature/feature-avy.el index b99483f..be243a2 100644 --- a/emacs/feature/feature-avy.el +++ b/emacs/feature/feature-avy.el @@ -1,3 +1,10 @@ +;;; feature-avy.el --- package management wrapper -*- lexical-binding: t; -*- +;;; +;;; Commentary: +;;; Provides package management wrappers. +;;; +;;; Code: + (require 'feature-pkg) (pkg/require 'avy) @@ -12,3 +19,5 @@ (global-set-key (kbd "C-x j .") #'avy-resume) (provide 'feature-avy) + +;;; feature-avy.el ends here. diff --git a/emacs/feature/feature-base.el b/emacs/feature/feature-base.el index db41adf..cf83116 100644 --- a/emacs/feature/feature-base.el +++ b/emacs/feature/feature-base.el @@ -1,4 +1,4 @@ -;;; cfg-emacs.el -- configure emacs behavior and user interface +;;; feature-base.el -- configure emacs behavior and user interface ;;; ;;; Commentary: ;;; Exactly what it looks like. diff --git a/emacs/feature/feature-browser.el b/emacs/feature/feature-browser.el index a4174d0..5c41089 100644 --- a/emacs/feature/feature-browser.el +++ b/emacs/feature/feature-browser.el @@ -1,3 +1,8 @@ +;;; feature-browser.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + (require 'eww) (setq shr-max-image-proportion 0.7) (setq shr-image-animate nil) @@ -18,3 +23,4 @@ (provide 'feature-browser) +;;; feature-browser.el ends here. diff --git a/emacs/feature/feature-ctags.el b/emacs/feature/feature-ctags.el index 5a18db7..f810613 100644 --- a/emacs/feature/feature-ctags.el +++ b/emacs/feature/feature-ctags.el @@ -1,3 +1,10 @@ +;;; feature-ctags.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + + + (defun generate-tags-for-directory (directory) "Generate CTAGS for the specified DIRECTORY." (interactive @@ -9,3 +16,5 @@ (global-set-key (kbd "C-x E t") 'generate-tags-for-directory) (provide 'feature-ctags) + +;;; feature-ctags.el ends here. diff --git a/emacs/feature/feature-denote-index.el b/emacs/feature/feature-denote-index.el index 6f3a291..2f8948e 100644 --- a/emacs/feature/feature-denote-index.el +++ b/emacs/feature/feature-denote-index.el @@ -1,6 +1,7 @@ ;;; feature-denote-index.el -- index and metadata for denote notes ;;; -;;; Commentary: Provides a mechanism for maintaining an index of +;;; Commentary: +;;; Provides a mechanism for maintaining an index of ;;; denote notes with useful metadata to facilitate search. ;;; ;;; Code: diff --git a/emacs/feature/feature-denote-multidir.el b/emacs/feature/feature-denote-multidir.el index 9126229..faa3594 100644 --- a/emacs/feature/feature-denote-multidir.el +++ b/emacs/feature/feature-denote-multidir.el @@ -1,4 +1,5 @@ ;;; feature-denote-multidir.el --- denote with multi-dir support +;;; ;;; Commentary: ;;; Extend denote with support for multiple notes directories. ;;; diff --git a/emacs/feature/feature-denote.el b/emacs/feature/feature-denote.el index 441990b..a27c762 100644 --- a/emacs/feature/feature-denote.el +++ b/emacs/feature/feature-denote.el @@ -1,4 +1,5 @@ ;;; feature-denote.el --- note taking +;;; ;;; Commentary: ;;; Configure denote for note taking purposes. ;;; diff --git a/emacs/feature/feature-embark.el b/emacs/feature/feature-embark.el index 2c24f80..a906a86 100644 --- a/emacs/feature/feature-embark.el +++ b/emacs/feature/feature-embark.el @@ -1,3 +1,9 @@ +;;; feature-embark.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + + (require 'feature-pkg) (pkg/require 'embark) @@ -13,3 +19,5 @@ (global-set-key (kbd "C-h B") #'embark-bindings) (provide 'feature-embark) + +;;; feature-embark.el ends here. diff --git a/emacs/feature/feature-eyecandy.el b/emacs/feature/feature-eyecandy.el index 01f5e96..625d451 100644 --- a/emacs/feature/feature-eyecandy.el +++ b/emacs/feature/feature-eyecandy.el @@ -1,3 +1,10 @@ +;;; feature-eyecandy.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + ;; themes (pkg/require 'acme-theme) @@ -18,3 +25,5 @@ (pkg/require 'unicode-fonts) (provide 'feature-eyecandy) + +;;; feature-eyecandy.el ends here. diff --git a/emacs/feature/feature-golang-playground.el b/emacs/feature/feature-golang-playground.el index 7165ec0..5968eb5 100644 --- a/emacs/feature/feature-golang-playground.el +++ b/emacs/feature/feature-golang-playground.el @@ -1,3 +1,12 @@ +;;; feature-golang-playground.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'go-playground) (provide 'feature-golang-playground) + +;;; feature-golang-playground.el ends here. diff --git a/emacs/feature/feature-golang.el b/emacs/feature/feature-golang.el index 56b541e..f4e4161 100644 --- a/emacs/feature/feature-golang.el +++ b/emacs/feature/feature-golang.el @@ -1,6 +1,15 @@ +;;; feature-golang.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'go-mode) (add-to-list 'auto-mode-alist '("\\.go$" . go-mode)) (add-hook 'before-save-hook #'gofmt-before-save) (provide 'feature-golang) + +;;; feature-golang.el ends here. diff --git a/emacs/feature/feature-graphviz.el b/emacs/feature/feature-graphviz.el index bd2d19f..1ca6304 100644 --- a/emacs/feature/feature-graphviz.el +++ b/emacs/feature/feature-graphviz.el @@ -1,3 +1,10 @@ +;;; feature-graphviz.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'graphviz-dot-mode) (with-eval-after-load 'org @@ -5,3 +12,5 @@ 'org-babel-load-languages '((dot . t)))) (provide 'feature-graphviz) + +;;; feature-graphviz.el ends here. diff --git a/emacs/feature/feature-json.el b/emacs/feature/feature-json.el index 89bee23..4b39750 100644 --- a/emacs/feature/feature-json.el +++ b/emacs/feature/feature-json.el @@ -1,5 +1,14 @@ +;;; feature-json.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'json-mode) (add-to-list 'auto-mode-alist '("\\.json$" . json-mode)) (provide 'feature-json) + +;;; feature-json.el ends here. diff --git a/emacs/feature/feature-keybindings.el b/emacs/feature/feature-keybindings.el deleted file mode 100644 index e69de29..0000000 diff --git a/emacs/feature/feature-kotlin.el b/emacs/feature/feature-kotlin.el index 2526234..3954015 100644 --- a/emacs/feature/feature-kotlin.el +++ b/emacs/feature/feature-kotlin.el @@ -1,5 +1,13 @@ +;;; feature-kotlin.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) (pkg/require 'kotlin-mode) ;;(add-to-list 'auto-mode-alist ("\\.kt$" . kotlin-mode)) (provide 'feature-kotlin) + +;;; feature-kotlin.el ends here. diff --git a/emacs/feature/feature-llm.el b/emacs/feature/feature-llm.el index 11ea32b..3f4aab2 100644 --- a/emacs/feature/feature-llm.el +++ b/emacs/feature/feature-llm.el @@ -1,3 +1,10 @@ +;;; feature-llm.el --- bullshit generators -*- lexical-binding: t; -*- +;;; +;;; Commentary: +;;; Provides interface to bullshit generators. +;;; +;;; Code: + (require 'feature-pkg) (pkg/require 'ellama) @@ -9,7 +16,7 @@ (setopt ellama-provider (make-llm-ollama - :chat-model "codellama:latest" + :chat-model "llama3:latest" :embedding-model "nomic-embed-text" :default-chat-non-standard-params '(("num_ctx" . 8192)))) @@ -22,3 +29,5 @@ (add-hook 'org-mode-hook #'org-ai-mode) (provide 'feature-llm) + +;;; feature-llm.el ends here. diff --git a/emacs/feature/feature-lmtf.el b/emacs/feature/feature-lmtf.el index 9b37f81..b2978da 100644 --- a/emacs/feature/feature-lmtf.el +++ b/emacs/feature/feature-lmtf.el @@ -1,3 +1,9 @@ +;;; feature-lmtf.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + + (require 'feature-pkg) (straight-use-package @@ -10,3 +16,5 @@ (provide 'feature-lmtf) + +;;; feature-lmtf.el ends here. diff --git a/emacs/feature/feature-pkg.el b/emacs/feature/feature-pkg.el index 9e90a48..e471384 100644 --- a/emacs/feature/feature-pkg.el +++ b/emacs/feature/feature-pkg.el @@ -1,3 +1,8 @@ +;;; feature-pkg.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + (require 'package) (with-eval-after-load 'package (add-to-list 'package-archives @@ -72,3 +77,5 @@ If NOERROR is non-nil, don't signal an error if the file is not found." '(pkg/run-after-packages-load ',packages ,@body)))) (provide 'feature-pkg) + +;;; feature-pkg.el ends here. diff --git a/emacs/feature/feature-plantuml.el b/emacs/feature/feature-plantuml.el index 097cbca..02f524a 100644 --- a/emacs/feature/feature-plantuml.el +++ b/emacs/feature/feature-plantuml.el @@ -1,3 +1,9 @@ +;;; feature-plantuml.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + + (pkg/require 'plantuml-mode) (setq plantuml-default-exec-mode 'jar @@ -10,3 +16,5 @@ 'org-babel-load-languages '((plantuml . t)))) (provide 'feature-plantuml) + +;;; feature-plantuml.el ends here. diff --git a/emacs/feature/feature-protobuf.el b/emacs/feature/feature-protobuf.el index 7693dbc..ffeccdb 100644 --- a/emacs/feature/feature-protobuf.el +++ b/emacs/feature/feature-protobuf.el @@ -1,6 +1,14 @@ +;;; feature-protobuf.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'protobuf-mode) (add-to-list 'auto-mode-alist '("\\.proto$" . protobuf-mode)) (provide 'feature-protobuf) +;;; feature-protobuf.el ends here. diff --git a/emacs/feature/feature-python.el b/emacs/feature/feature-python.el index e36ff42..d5e9732 100644 --- a/emacs/feature/feature-python.el +++ b/emacs/feature/feature-python.el @@ -1,3 +1,10 @@ +;;; feature-python.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'python-mode) (pkg/require 'python-environment) @@ -5,3 +12,5 @@ (add-to-list 'auto-mode-alist '("BUILD\\'" . python-mode)) (provide 'feature-python) + +;;; feature-python.el ends here. diff --git a/emacs/feature/feature-rego.el b/emacs/feature/feature-rego.el index 7a9beee..68f67d0 100644 --- a/emacs/feature/feature-rego.el +++ b/emacs/feature/feature-rego.el @@ -1,3 +1,12 @@ +;;; feature-browser.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'rego-mode) (provide 'feature-rego) + +;;; feature-rego.el ends here. diff --git a/emacs/feature/feature-sidebar.el b/emacs/feature/feature-sidebar.el deleted file mode 100644 index e69de29..0000000 diff --git a/emacs/feature/feature-snippets.el b/emacs/feature/feature-snippets.el index 3dc9047..c869c52 100644 --- a/emacs/feature/feature-snippets.el +++ b/emacs/feature/feature-snippets.el @@ -1,3 +1,10 @@ +;;; feature-snippets.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + + + (require 'feature-pkg) (pkg/require 'yasnippet) @@ -14,3 +21,5 @@ (add-hook 'org-mode-hook #'yas-minor-mode) (provide 'feature-snippets) + +;;; feature-snippets.el ends here. diff --git a/emacs/feature/feature-web.el b/emacs/feature/feature-web.el index 1f2fc68..3c47a86 100644 --- a/emacs/feature/feature-web.el +++ b/emacs/feature/feature-web.el @@ -1,3 +1,10 @@ +;;; feature-web.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'mmm-mode) (pkg/require 'multi-web-mode) (pkg/require 'php-mode) @@ -7,3 +14,4 @@ (provide 'feature-web) +;;; feature-web.el ends here. diff --git a/emacs/feature/feature-which-key.el b/emacs/feature/feature-which-key.el index dec8c00..c376e80 100644 --- a/emacs/feature/feature-which-key.el +++ b/emacs/feature/feature-which-key.el @@ -1,5 +1,14 @@ +;;; feature-which-key.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) + (pkg/require 'which-key) (which-key-mode) (provide 'feature-which-key) + +;;; feature-which-key.el ends here. diff --git a/emacs/feature/feature-yaml.el b/emacs/feature/feature-yaml.el index d82273e..a480f68 100644 --- a/emacs/feature/feature-yaml.el +++ b/emacs/feature/feature-yaml.el @@ -1,5 +1,13 @@ +;;; feature-yaml.el --- Brief description -*- lexical-binding: t; -*- +;;; Commentary: + +;;; Code: + +(require 'feature-pkg) (pkg/require 'yaml-mode) (add-to-list 'auto-mode-alist '("\\.yml$" . yaml-mode)) (provide 'feature-yaml) + +;;; feature-yaml.el ends here.