aboutsummaryrefslogtreecommitdiff
path: root/config/emacs.org
diff options
context:
space:
mode:
Diffstat (limited to 'config/emacs.org')
-rw-r--r--config/emacs.org17
1 files changed, 12 insertions, 5 deletions
diff --git a/config/emacs.org b/config/emacs.org
index 64382ca..373a5e2 100644
--- a/config/emacs.org
+++ b/config/emacs.org
@@ -8,6 +8,13 @@ This is my Vanilla Emacs configuration, made to work with my NixOS configuration
reason, you will not see :ensure t inside any use-package declaration, for emacs packages
are all compiled natively and reproducibly on the NixOS side. This configuration uses the
emacs-lisp language only to configure variables for said packages, for the most part.
+** User
+Change these variables:
+#+begin_src emacs-lisp
+ (setq system-email "ret2pop@gmail.com")
+ (setq system-username "prestonpan")
+ (setq system-fullname "Preston Pan")
+#+end_src
** UI Elements
This section contains important UI elements and starting customization variables to make
emacs work in a semi-sane way and make it not look ugly:
@@ -437,8 +444,8 @@ Ivy is a pretty cool general program for displaying stuff:
** IRC
#+begin_src emacs-lisp
(setq
- erc-nick "prestonpan"
- erc-user-full-name "Preston Pan")
+ erc-nick system-username
+ erc-user-full-name system-fullname)
(defun prestonpan ()
(interactive)
@@ -621,8 +628,8 @@ Make LaTeX a litle better:
Email in emacs can be done with Mu4e.
#+begin_src emacs-lisp
;; SMTP settings:
- (setq user-mail-address "ret2pop@gmail.com")
- (setq user-full-name "Preston Pan")
+ (setq user-mail-address system-email)
+ (setq user-full-name system-fullname)
(setq sendmail-program "msmtp"
send-mail-function 'smtpmail-send-it
message-sendmail-f-is-evil t
@@ -644,7 +651,7 @@ Email in emacs can be done with Mu4e.
(setq mu4e-compose-dont-reply-to-self t)
(setq mu4e-change-filenames-when-moving t)
(setq mu4e-get-mail-command "mbsync ret2pop")
- (setq mu4e-compose-reply-ignore-address '("no-?reply" "ret2pop@gmail.com"))
+ (setq mu4e-compose-reply-ignore-address (add-to-list '("no-?reply") system-email))
(setq mu4e-html2text-command "w3m -T text/html" ; how to hanfle html-formatted emails
mu4e-update-interval 300 ; seconds between each mail retrieval
mu4e-headers-auto-update t ; avoid to type `g' to update