summaryrefslogtreecommitdiff
path: root/modules/test-code.el
diff options
context:
space:
mode:
authorCraig Jennings <craigmartinjennings@gmail.com>2024-04-11 17:29:10 -0500
committerCraig Jennings <craigmartinjennings@gmail.com>2024-04-11 17:29:10 -0500
commit43e1f37c02f216a36312876d56a8f313aabcf07a (patch)
treeea694f58737db225b5ac75beacb50a5d01515ad4 /modules/test-code.el
parent84c0963ec2096148932ec4ce8529a029cf930121 (diff)
additional bug fixing
- 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
Diffstat (limited to 'modules/test-code.el')
-rw-r--r--modules/test-code.el59
1 files changed, 17 insertions, 42 deletions
diff --git a/modules/test-code.el b/modules/test-code.el
index 85e7bce6..6c4fadcd 100644
--- a/modules/test-code.el
+++ b/modules/test-code.el
@@ -29,6 +29,23 @@
:config
(setf yeetube-mpv-disable-video nil))
+;; --------------------------------- Easy Hugo ---------------------------------
+
+(use-package easy-hugo
+ :defer .5
+ :init
+ (setq easy-hugo-basedir "~/code/cjennings.net/")
+ (setq easy-hugo-url "https://cjennings.net")
+ (setq easy-hugo-sshdomain "cjennings.net")
+ (setq easy-hugo-root "/var/www/cjennings/")
+ (setq easy-hugo-previewtime "300")
+ (setq easy-hugo-postdir "content")
+ (setq easy-hugo-server-flags "-D")
+ (setq easy-hugo-default-ext ".md")
+ :bind ("C-c H" . easy-hugo)
+ :config
+ (easy-hugo-enable-menu))
+
;; --------------------------------- Recording ---------------------------------
@@ -78,51 +95,9 @@ otherwise use the default location in `cj/recording-location'."
(setq cj/ffmpeg-process nil)
(message "Stopped recording process.")))
-;; ------------------------ Insert Around Word Or Region -----------------------
-
-(defun cj/insert-around-word-or-region ()
- "Prompt for a string, insert it before and after the word at point or selected region."
- (interactive)
- (let ((str (read-string "Enter a string: "))
- (regionp (use-region-p)))
- (save-excursion
- (if regionp
- (let ((beg (region-beginning))
- (end (region-end)))
- (goto-char end)
- (insert str)
- (goto-char beg)
- (insert str))
- (if (thing-at-point 'word)
- (let ((bounds (bounds-of-thing-at-point 'word)))
- (goto-char (cdr bounds))
- (insert str)
- (goto-char (car bounds))
- (insert str))
- (message "Can't insert around. No word at point and no region selected."))))))
-
-(global-set-key (kbd "C-; i a") 'cj/insert-around-word-or-region)
-
-;; --------------------------------- Easy Hugo ---------------------------------
-
-(use-package easy-hugo
- :defer .5
- :init
- (setq easy-hugo-basedir "~/code/cjennings.net/")
- (setq easy-hugo-url "https://cjennings.net")
- (setq easy-hugo-sshdomain "cjennings.net")
- (setq easy-hugo-root "/var/www/cjennings/")
- (setq easy-hugo-previewtime "300")
- (setq easy-hugo-postdir "content")
- (setq easy-hugo-server-flags "-D")
- (setq easy-hugo-default-ext ".md")
- :bind ("C-c H" . easy-hugo)
- :config
- (easy-hugo-enable-menu))
;; -------------------------------- Google This --------------------------------
-;; BUG: Fix warnings and errors thrown
(use-package google-this
:load-path "~/code/emacs-google-this/"
:defer 1