~hristoast/dot-emacs

99109e386b9556c4049f6f6e4cdf941f298cfdc6 — Hristos N. Triantafillou 3 months ago 3bf6795
Break these out too
4 files changed, 35 insertions(+), 8 deletions(-)

M init.el
A lib/h-search.el
A lib/h-system.el
M lib/keybindings.el
M init.el => init.el +4 -6
@@ 33,18 33,16 @@
;; https://github.com/raxod502/straight.el/blob/2d407bccd9378f1d5218f8ba2ae85c6be73fbaf1/README.md#integration-with-use-package
(straight-use-package 'use-package)

;; Diminished modes are minor modes with no modeline display
;; http://www.eskimo.com/~seldon/diminish.el
(use-package diminish :straight t)

;; Module definitions
(defvar hristoast-modules
  #s(hash-table
     size 42
     size 44
     data
     ;; "Env var that disables loading if present" "file name in lib/ minus the extension"
     ;; Be sure to check `list-load-path-shadows' every so often!
     ("EMACS_NO_EDITING_TWEAKS" "editing"
     ("EMACS_NO_EDITING_TWEAKS" "h-system"
      "EMACS_NO_EDITING_TWEAKS" "editing"
      "EMACS_NO_SEARCH_TWEAKS" "h-search"
      "EMACS_NO_EXTRA_FUNCTIONS" "functions"
      "EMACS_NO_INTERNALS_TWEAKS" "internals"
      "EMACS_NO_KEYBINDINGS_TWEAKS" "keybindings"

A lib/h-search.el => lib/h-search.el +16 -0
@@ 0,0 1,16 @@
;;; h-search.el --- Packages related to editing.
;;; Commentary:
;; Packages related to editing.
;;; Code:

;; Ignore "vendor" directories when rgrepping. Useful for some go projects I've worked on.
(use-package grep
  :straight nil
  :bind
  ("C-c r" .  rgrep)
  ("<f13>" .  rgrep)
  :config
  (add-to-list 'grep-find-ignored-directories ".cache")
  (add-to-list 'grep-find-ignored-directories "vendor"))

;;; h-search.el ends here

A lib/h-system.el => lib/h-system.el +15 -0
@@ 0,0 1,15 @@
;;; h-system.el --- Stuff related to the system.
;;; Commentary:
;; Stuff related to the system, and things that should load early.
;;; Code:

;; Diminished modes are minor modes with no modeline display
;; http://www.eskimo.com/~seldon/diminish.el
;; Load this early on.
(use-package diminish :straight t)

;; TODO: This causes a hang on my system, figure out why..
;; https://github.com/jwiegley/use-package/tree/a7422fb8ab1baee19adb2717b5b47b9c3812a84c#use-package-ensure-system-package
;; (use-package use-package-ensure-system-package :straight t)

;;; h-system.el ends here

M lib/keybindings.el => lib/keybindings.el +0 -2
@@ 25,8 25,6 @@
;; Toggle whitespace-mode
(global-set-key (kbd "C-c w") 'whitespace-mode)
;; Extra keybindings that make life great
(global-set-key (kbd "C-c r") 'rgrep)
(global-set-key (kbd "<f13>") 'rgrep) ;; Nice for macs
(global-set-key (kbd "C-x r b") 'revert-buffer)
(global-set-key (kbd "C-c q q q") 'save-buffers-kill-emacs)
(global-set-key (kbd "C-c d w") 'downcase-word)