From bf8b65601b02120a2f35bf3ae0bdc5963410ecb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?tr=C3=A9meur?= Date: Tue, 19 Dec 2023 20:03:59 +0000 Subject: [PATCH] General cleanup --- config.org | 7 +++++-- custom/fic.el | 2 +- custom/refile.el | 13 +++++++------ fic-export-files/header.tex | 2 +- mail.el | 31 ------------------------------- snippets/fundamental-mode/bb | 4 ---- snippets/fundamental-mode/git | 6 ------ 7 files changed, 14 insertions(+), 51 deletions(-) delete mode 100644 mail.el delete mode 100644 snippets/fundamental-mode/bb delete mode 100644 snippets/fundamental-mode/git diff --git a/config.org b/config.org index 365af83..e20191e 100644 --- a/config.org +++ b/config.org @@ -430,7 +430,11 @@ I really only use this for DW posts, but I’m constantly surprised by how well #+BEGIN_SRC emacs-lisp (when (string-equal system-type "gnu/linux") (add-to-list 'load-path "/usr/share/emacs/site-lisp/mu4e") - (load-file "~/.emacs.d/mail.el") + (setq mu4e-sent-folder "/Fastmail/sent" + mu4e-drafts-folder "/Fastmail/drafts" + smtpmail-default-smtp-server "smtp.fastmail.com" + smtpmail-smtp-server "smtp.fastmail.com" + smtpmail-smtp-service 587) (require 'mu4e) (setq send-mail-function 'smtpmail-send-it)) #+END_SRC @@ -802,7 +806,6 @@ Set up habit display. #+BEGIN_SRC emacs-lisp (when (string-equal system-type "gnu/linux") - ;; (setq org-refile-targets `((,(directory-files-recursively "~/Documents/drive/org/journal/" "\\.org$") :maxlevel . 1))) (setq org-refile-use-outline-path 'file)) #+END_SRC ** =paren= diff --git a/custom/fic.el b/custom/fic.el index 72ff86a..aeb2aba 100644 --- a/custom/fic.el +++ b/custom/fic.el @@ -68,7 +68,7 @@ (goto-char (point-min)) (while (re-search-forward "\\[fn:\\([0-9]*\\):\\([^•]*\\)•\\]" nil t) (replace-match "@@html:@@@@latex:\\\\footnote{@@\\2@@html:@@@@latex:}@@")) - (let ((user-full-name "ovely") + (let ((user-full-name "Tré") (org-html-head "") (org-export-with-author t) (org-latex-default-class "memoir")) diff --git a/custom/refile.el b/custom/refile.el index f77abf8..e7aad3e 100644 --- a/custom/refile.el +++ b/custom/refile.el @@ -10,11 +10,12 @@ (org-refile))) (defun filedate () - "Insert timestamp based on file name" + "Insert timestamp if required based on file name" (interactive) (goto-char (point-min)) - (setq thedate (file-name-base)) - (insert (concat "<" thedate ">")) - (org-ctrl-c-ctrl-c) - (insert "\n\n") - (goto-char (point-min))) + (unless (eq ?< (char-after)) + (setq thedate (file-name-base)) + (insert (concat "<" thedate ">")) + (org-ctrl-c-ctrl-c) + (insert "\n\n") + (goto-char (point-min)))) diff --git a/fic-export-files/header.tex b/fic-export-files/header.tex index dbaf3b2..cd37431 100644 --- a/fic-export-files/header.tex +++ b/fic-export-files/header.tex @@ -112,7 +112,7 @@ \end{minipage} \hspace{0.05\textwidth} \begin{minipage}{0.6\textwidth} - {\Large OVELY} \\ + {\Large TRÉ} \\ \rule{0.9\textwidth}{1pt} \par \vspace{3\baselineskip} {\noindent\Huge\bfseries A SHOT} \par diff --git a/mail.el b/mail.el deleted file mode 100644 index 8064aff..0000000 --- a/mail.el +++ /dev/null @@ -1,31 +0,0 @@ -;; (setq mu4e-sent-folder "/Gmail/sent" -;; mu4e-drafts-folder "/Gmail/drafts" -;; user-mail-address "eheu48@gmail.com" -;; smtpmail-default-smtp-server "smtp.gmail.com" -;; smtpmail-smtp-server "smtp.gmail.com" -;; smtpmail-smtp-service 587) - -(setq mu4e-sent-folder "/Fastmail/sent" - mu4e-drafts-folder "/Fastmail/drafts" - user-mail-address "tre@praze.net" - smtpmail-default-smtp-server "smtp.fastmail.com" - smtpmail-smtp-server "smtp.fastmail.com" - smtpmail-smtp-service 587) - -(defvar my-mu4e-account-alist - '(("Gmail" - (mu4e-sent-folder "/Gmail/sent") - (user-mail-address "eheu48@gmail.com") - (smtpmail-smtp-user "eheu48") - (smtpmail-local-domain "gmail.com") - (smtpmail-default-smtp-server "smtp.gmail.com") - (smtpmail-smtp-server "smtp.gmail.com") - (smtpmail-smtp-service 587)) - ("Fastmail" - (mu4e-sent-folder "/Fastmail/sent") - (user-mail-address "tre@praze.net") - (smtpmail-smtp-user "tre@praze.net") - (smtpmail-local-domain "praze.net") - (smtpmail-default-smtp-server "smtp.fastmail.com") - (smtpmail-smtp-server "smtp.fastmail.com") - (smtpmail-smtp-service 587)))) diff --git a/snippets/fundamental-mode/bb b/snippets/fundamental-mode/bb deleted file mode 100644 index 15e95c6..0000000 --- a/snippets/fundamental-mode/bb +++ /dev/null @@ -1,4 +0,0 @@ -# name: backblazeurl -# key: bb -# -- -https://f003.backblazeb2.com/file/$0 \ No newline at end of file diff --git a/snippets/fundamental-mode/git b/snippets/fundamental-mode/git deleted file mode 100644 index 31d8789..0000000 --- a/snippets/fundamental-mode/git +++ /dev/null @@ -1,6 +0,0 @@ -# name: git-token -# key: git -# -- -`(with-temp-buffer - (insert-file-contents "~/Documents/drive/admin/emacs/token-t29") - (buffer-string))`$0 \ No newline at end of file