summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Cunningham <cc@localhost>2024-06-09 22:56:54 -0700
committerChristian Cunningham <cc@localhost>2024-06-09 22:56:54 -0700
commitc8be5ff4118890d83f3cf0d3e376b1baab6d524c (patch)
tree28cf6eaf2316fd56838bd4a33bfb16e160f93d38
parentf4694f9ab33ce6ea2e41458d6371d95f0f5e4c7b (diff)
Rename variables
-rw-r--r--elchemy-functions.el8
-rw-r--r--elchemy-hooks.el2
-rw-r--r--elchemy-package-org.el16
-rw-r--r--elchemy-personal.el6
-rw-r--r--elchemy-user.el10
5 files changed, 21 insertions, 21 deletions
diff --git a/elchemy-functions.el b/elchemy-functions.el
index 296e1e9..465034b 100644
--- a/elchemy-functions.el
+++ b/elchemy-functions.el
@@ -2,9 +2,9 @@
(interactive)
(save-excursion
(if (equal mark-active nil) (mark-word))
- (setq nm/rib/current-word (buffer-substring-no-properties (mark) (point)))
- (setq nm/rib/old-string (read-string "OLD string:\n" nm/rib/current-word))
- (setq nm/rib/new-string (read-string "NEW string:\n" nm/rib/old-string))
- (query-replace nm/rib/old-string nm/rib/new-string nil (point-min) (point-max))))
+ (setq elchemy/rib/current-word (buffer-substring-no-properties (mark) (point)))
+ (setq elchemy/rib/old-string (read-string "OLD string:\n" elchemy/rib/current-word))
+ (setq elchemy/rib/new-string (read-string "NEW string:\n" elchemy/rib/old-string))
+ (query-replace elchemy/rib/old-string elchemy/rib/new-string nil (point-min) (point-max))))
(provide 'elchemy-functions)
diff --git a/elchemy-hooks.el b/elchemy-hooks.el
index a61fc52..5c25be4 100644
--- a/elchemy-hooks.el
+++ b/elchemy-hooks.el
@@ -4,7 +4,7 @@
(set (make-local-variable 'sgml-basic-offset) 4)))
;; Org Mode
-(setq org-latex-compiler nm/user/latex-compiler
+(setq org-latex-compiler elchemy/user/latex-compiler
org-export-with-smart-quotes t)
(provide 'elchemy-hooks)
diff --git a/elchemy-package-org.el b/elchemy-package-org.el
index 11467b7..cdd0e3b 100644
--- a/elchemy-package-org.el
+++ b/elchemy-package-org.el
@@ -4,10 +4,10 @@
(custom-declare-face '+org-todo-project '((t (:inherit (bold font-lock-doc-face org-todo)))) "")
(custom-declare-face '+org-todo-onhold '((t (:inherit (bold warning org-todo)))) "")
(custom-declare-face '+org-todo-cancel '((t (:inherit (bold error org-todo)))) "")
- (unless (file-exists-p nm/user/org-directory)
- (make-directory nm/user/org-directory))
- (setq org-directory nm/user/org-directory
- org-agenda-files (list (concat nm/user/org-directory nm/user/org-todo-file-name))
+ (unless (file-exists-p elchemy/user/org-directory)
+ (make-directory elchemy/user/org-directory))
+ (setq org-directory elchemy/user/org-directory
+ org-agenda-files (list (concat elchemy/user/org-directory elchemy/user/org-todo-file-name))
org-todo-keywords
'((sequence "TODO(t)"
"STRT(s)"
@@ -25,9 +25,9 @@
"YES(y)"
"NO(n)"))
org-capture-templates
- `(("n" "Notes" entry (file+olp+datetree ,(concat nm/user/org-directory nm/user/org-notes-file-name) "Notes")
+ `(("n" "Notes" entry (file+olp+datetree ,(concat elchemy/user/org-directory elchemy/user/org-notes-file-name) "Notes")
"* %?\nEntered on %U\n %i\n %a")
- ("t" "Todo" entry (file+headline ,(concat nm/user/org-directory nm/user/org-todo-file-name) "Tasks")
+ ("t" "Todo" entry (file+headline ,(concat elchemy/user/org-directory elchemy/user/org-todo-file-name) "Tasks")
"* TODO %?\n %i\n %a"))
org-todo-keyword-faces
'(("[-]" . +org-todo-active)
@@ -53,9 +53,9 @@
(put-text-property (match-beginning 0) (match-end 0)
'invisible t)))))))
-(if nm/user/org-hideaway
+(if elchemy/user/org-hideaway
(add-hook 'org-mode-hook #'elchemy/hide-org-mode-stars))
-(setq org-hide-emphasis-markers nm/user/org-hideaway)
+(setq org-hide-emphasis-markers elchemy/user/org-hideaway)
(custom-set-faces
'(org-level-1 ((t (:inherit outline-1 :extend nil :weight extra-bold :height 1.4))))
diff --git a/elchemy-personal.el b/elchemy-personal.el
index 7a87208..8da602f 100644
--- a/elchemy-personal.el
+++ b/elchemy-personal.el
@@ -4,7 +4,7 @@
(setq python-shell-interpreter "~/.micromamba/envs/emacs-py/bin/ipython"
python-shell-interpreter-args "--pylab")
-(defun nm/add-to-pypath (&optional path)
+(defun elchemy/add-to-pypath (&optional path)
"# Add to python path"
(interactive)
(let* ((fullpath (if path
@@ -40,11 +40,11 @@
(setq org-babel-gnuplot-command "/usr/local/bin/gnuplot")
(setq org-confirm-babel-evaluate nil)
-(defun nm/personal/ignore-angle-brackets ()
+(defun elchemy/personal/ignore-angle-brackets ()
"Ignore angle brackets in org mode"
(modify-syntax-entry ?< ".")
(modify-syntax-entry ?> "."))
-(add-hook 'org-mode-hook 'nm/personal/ignore-angle-brackets)
+(add-hook 'org-mode-hook 'elchemy/personal/ignore-angle-brackets)
(add-to-list 'load-path "~/.emacs.d/extras/")
(when (require 'writegood-mode nil t)
diff --git a/elchemy-user.el b/elchemy-user.el
index f76cab1..a29a85c 100644
--- a/elchemy-user.el
+++ b/elchemy-user.el
@@ -5,11 +5,11 @@
default-input-method "ukrainian-computer"
disable-lockfiles nil)
-(setq nm/user/latex-compiler "lualatex"
- nm/user/org-directory "~/org/"
- nm/user/org-todo-file-name "todo.org"
- nm/user/org-notes-file-name "notes.org"
- nm/user/org-hideaway t)
+(setq elchemy/user/latex-compiler "lualatex"
+ elchemy/user/org-directory "~/org/"
+ elchemy/user/org-todo-file-name "todo.org"
+ elchemy/user/org-notes-file-name "notes.org"
+ elchemy/user/org-hideaway t)
(setq-default mode-line-format nil)