summaryrefslogtreecommitdiff
path: root/modules/custom-functions.el
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Improve whitespace and region handling in custom functionsCraig Jennings2025-09-061-95/+96
| | | | | | | | | | | | Refactors several custom functions to better handle regions and improve code quality: - Make `cj/fraction-glyph-toggle` automatically detect region or buffer - Rewrite `cj/remove-leading-trailing-whitespace` for more consistent behavior - Improve `cj/collapse-whitespace-line-or-region` with better tab handling - Update `cj/join-line-or-region` and `cj/remove-duplicate-lines-region-or-buffer` to work without explicit region parameters - Makes minor improvements to string handling in other functions
* don't leave trailing space if there's no end-comment characterCraig Jennings2025-09-061-2/+5
|
* added commentary to match updated functionsCraig Jennings2025-09-051-7/+6
|
* feat: Reorganize buffer editing functions and key bindingsCraig Jennings2025-09-051-12/+22
| | | | | | - Move and update buffer manipulation functions to the buffer operations section. - Add new function to clear text to beginning of buffer and improve message feedback. - Update key bindings to group related buffer commands together.
* added cj/clear-to-end-of-bufferCraig Jennings2025-09-051-1/+10
|
* Fixed comment boxCraig Jennings2025-08-311-17/+61
|
* chore(config): refine comments, docs and flycheck bindingCraig Jennings2025-08-311-1/+1
| | | | | | - Simplify init.el commentary and reference ai-directives.el - Clarify cj/format-region-or-buffer docstring wording - Add flycheck keymap to personal/custom key map C-;
* (refactor) custom functionsCraig Jennings2025-08-311-521/+657
| | | | | | | | | | | - Pull in custom commenting functions from prog-comments.el - categorize similar functions and add to proper key maps - better comments to explain functions - wrapped upcase and downcase functions to actually dwim - modified readable time format - removed strip-ctrl-m -- unused and didn't function correctly - removed wrap-region-as-code-span -- unused & redundant with other wrap funcs - renamed some functions to clarify purpose
* email, ai, and miscellaneousCraig Jennings2025-08-301-10/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | refactor setup-email script - Enable "set -euo pipefail" for safer execution - Quote all variable references in test conditions - Update script header with usage notes and email setup steps email and org-msg changes - Configure org-msg with inline CSS, greeting, images, citations, and signature - Enable org-msg-mode in all mu4e compose buffers - Advise mu4e-compose-reply and mu4e-compose-wide-reply to use org-msg-edit-mode - Move no-auto-fill hook into mu4e-compose-mode-hook - Disable mu4e-compose-format-flowed and set mu4e-html2text-command - Update gnus-blocked-images comment and remove default signature-file setting - remove org-contact configurations ai changes - historian directive added - added all new directives to menu - changed default directive to default-directive! misc changes - org complains when tab-widths aren't at 8 - refactor and improve delete blank lines region or buffer - change name of add-header function to be more specific - updated tasks - updated abbrevs - documentation for local-arch-wiki-search
* feat(custom-functions): add `cj/copy-buffer` commandCraig Jennings2025-08-171-111/+125
| | | | | Bind `cj/copy-buffer` to “C-; b c” to copy the entire buffer contents to the kill ring.
* refactor(system-utils): major refactoring / adding testsCraig Jennings2025-08-141-5/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Theme: Modularize system-utilities into separate modules. Clean up any typos, buts, and unused variables. Add some initial ERT tests for new modules created. Changes: - Extract file handling into its own module (file-config) - Extract keyboard macro management into its own module (keyboard-macros) - Extract buffer burying (instead of killing) into its own module (undead-buffers) - Extract all date/time config into its own module (chrono-tools) - Moved keybinding discovery functionality and help into keybindings module - Combine flyspell and abbrev (spell-check and autocorrect) to flyspell-and-abbrev.el - Rename epa-config.el to auth-config.el for auth-source and epa settings. - Refactor `cj/kill-other-window` for more accurate buffer handling. - Include "*ert*" in the default bury (don't kill) list as killing it kills test runs. - Bind C-c M-m to inhibit-mouse-mode - Remove the unused ledger-file variable in user-constants.el. - Removed obsolete C-x x m, C-x x r, and C-x x d key mappings. - C-; b r to call cj/rename-buffer-and-file instead of typo’d function - Other purely cosmetic comment changes to system-utils.el ERT tests: - Rename ERT test definitions to include module scopes (file-config, keyboard-macros) - Add an ERT test for the timer bell's existence. - Add ERT tests to cover `cj/kill-buffer-or-bury-alive`, prefix-arg behavior, window-killing commands, and bulk operations. - Add test `authinfo-file` exists Missing authinfo triggers a debug message - Add test that `gpg2` executable is on the user’s PATH - Remove outdated authinfo test. - Add “Run these tests” note where missing.
* adding author statements to all el filesCraig Jennings2025-06-071-0/+1
|
* enhancements, functions, tests, and miscCraig Jennings2024-05-051-23/+95
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | enhancements - move accent-company to C-` and ensure it's on for org mode - re-enable narrow-to-region - turn on network repos by default - remove setq in company's use-package custom clause - increase company delay to .7 secs - recipe templates should have visibility show all - move video recordings code to separate module - move geiser-guile to prog-lisp functions - improve cj/reformat-region-or-buffer via restriction - improvements to test-format-region - adding tests for clear-blank-lines - Add prepend-lines and replace-fraction-glyphs functions - add cj/clear-blank-lines function - create cj/load-all-tests utility function tests - add keybinding for ert-run-tests-interactively - ensure ert libraries are available to load-all-tests - remove running the tests when evaluating the buffer - fix clear-blank-lines and adding better tests misc - updated packages - adding the luddite blog to elfeed - more abbrevs
* refactored flyspell-and-abbrevCraig Jennings2024-04-291-0/+5
| | | | | | - refactored flyspell-and-abbrev, adding ert tests - remove unsetting the C-; keybinding for personal-keymap from Flyspell to custom-functions with the rest of the keybinding commands.
* New Custom Functions, Org Updates, Agenda Updates, &c.Craig Jennings2024-04-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | === Functions === - add function cj/dired-convert-image-to-jpeg - add function cj/dired-copy-path-as-kill - add function cj/export-org-to-md-on-save function - add function cj/org-link-to-current-file === Agenda === - rework the f8 main agenda into custom agenda using Aaron Bieber's ideas - agenda lists now use standard agenda functions - updated packages to remove org-super-agenda and ts (a dependency) - file commentary text updated to reflect the change === Org === - add grocery and shopping list capture items - add missing tests for org-skip-subtree-if-habit - add support for org-habits, including checkboxes - fix issue with org-auto-export-to-md - modularize org-agenda - move todo settings to org-config - reformat org-roam-config === &c. === - add day to sortable date - add disablefastrenderer to hugo server flags - add fill column indicator when emacs lisping - add gpt buffers to the bury-alive-list - add keybinding for fixup-whitespace - add magit cloning settings - finish automatically on "Link" capture - fix company complaints about shutting up function - fix em, e, ff, and f eshell aliases - make fallback theme modus-vivendi - prune the compilation cache when applicable
* tests and more bug fixingCraig Jennings2024-04-141-2/+1
| | | | | | | | | | - make org todo starting priority the lowest ("D") - better default prompt for gptel - added function to browse arch-wiki-docs - added tests for join line or region - added tests for format region or buffer - added region arguments to cj/join-paragraph - updated tasks
* additional bug fixingCraig Jennings2024-04-111-1/+50
| | | | | | | | | | | | - stray cj/bookmark-set-and-save references replaced with bookmark-set - added warning level for errors - added an alternate elpa-mirrors location (git repos shouldn't be added inside a git repo) - added default font size to "Berkeley Only" and the default in fontaine - updated eww to search using frog find for readability - fixed typo on comments in user-constants - moved easy hugo configuration higher for easier accessibility - move "insert around" function to custom functions
* fit and finish workCraig Jennings2024-04-081-16/+51
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - gptel: added gptel-send-region with global keybinding - projectile: made project-switch-actions more efficient with regexp - prog-go: removed disabled code - mu4e: capture template captures region if selected - system utils: merged bury alive with other killing buffer code - org-capture: renamed *website-clipper to org-webpage-clipper - rg: auto switch to ripgrep-results window when ripgrep search completes - dashboard: remove dashboard banner custom face General - moved abbrev_defs to assets - removed gitmodules file - updated packages - fixed docstring and formatting throughout Custom-Functions - move cj/merge-list-to-list to custom-functions - add remove leading trailing whitespace function - corrected arrayify prompt Font-Config - added font point sizes in fontaine menu - make default font point size 11 Python - adding back python poetry support - added cj/python-setup method - merge python and python-mode configurations (they are the same built-in package) Show-Kill-Ring - show-kill-ring displays in another read-only buffer - show-kill-ring exits with q Elfeed - moved elfeed-feeds.org to assets - removed Wired from elfeed feeds - moved ElfeedDB to user-emacs-directory/.elfeed-db - moved elfeed-dashboard.org to assets
* new repositoryCraig Jennings2024-04-071-0/+506