aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorPreston Pan <ret2pop@gmail.com>2025-01-03 20:22:16 -0800
committerPreston Pan <ret2pop@gmail.com>2025-01-03 20:22:16 -0800
commit081d95b2ff52d88053bf0f5180208b630d4cdaa2 (patch)
treed2b323e23ec12bf7851c5da3e9659cf78995cb39 /config
parent7b6c23a672ad42103c358bcbe72d42baa6263ec7 (diff)
add blog posts and journal posts; update emacs configuration
Diffstat (limited to 'config')
-rw-r--r--config/elfeed.org4
-rw-r--r--config/emacs.el239
-rw-r--r--config/emacs.org121
-rw-r--r--config/index.org34
-rw-r--r--config/nix.org2
5 files changed, 216 insertions, 184 deletions
diff --git a/config/elfeed.org b/config/elfeed.org
index cd37c15..f898995 100644
--- a/config/elfeed.org
+++ b/config/elfeed.org
@@ -22,6 +22,7 @@ but I mostly just want to inform myself about technology subjects.
*** [[https://www.wired.com/feed/tag/ai/latest/rss][Wired AI News]]
Wired isn't too bad at covering science and technology.
*** [[https://www.wired.com/feed/category/science/latest/rss][Wired Science]]
+Look above.
*** [[https://feeds.washingtonpost.com/rss/politics?itid=lk_inline_manual_2][Washington Post Politics]]
Politics is almost useless, but it helps with understanding what people are saying around me.
*** [[https://news.ycombinator.com/rss][Hacker News]]
@@ -30,6 +31,7 @@ Hacker News!
Credibility: misreported on ER EPR correspondence
** Podcasts :podcast:
*** [[https://notrelated.xyz/rss][Not Related]] :lukesmith:
+This is a podcast by Luke Smith that talks about anything that he wants to.
** Forums :forum:
** Science Journals :journal:
I like to get new information about recent studies related to technology.
@@ -47,4 +49,4 @@ UnHerd is one of the best, most interesting political podcasts, period, in my op
about politics is kind of pointless.
** Misc.
This is a section dedicated to everything that does not fit the above categories
-or is newly added from Qutebrowser with the xr keybinding.
+or is newly added from [[file:qutebrowser.org][Qutebrowser]] with the xr keybinding.
diff --git a/config/emacs.el b/config/emacs.el
index b56c646..9a7d473 100644
--- a/config/emacs.el
+++ b/config/emacs.el
@@ -1,3 +1,4 @@
+(require 'tex-site)
(pixel-scroll-precision-mode 1)
(setq scroll-conservatively 101)
(display-battery-mode 1)
@@ -23,7 +24,20 @@
(setq debug-ignored-errors
(cons 'remote-file-error debug-ignored-errors))
(set-face-attribute 'default nil :font "Iosevka Nerd Font" :height 140)
+(setq preview-default-option-list '("displaymath" "textmath" "graphics"))
+(setq preview-image-type 'png)
+(setq org-latex-pdf-process
+ '("xelatex -interaction=nonstopmode -output-directory=%o %f"))
+(setq org-latex-preview-image-directory "/home/preston/.cache/ltximg/")
(setq org-preview-latex-image-directory "/home/preston/.cache/ltximg/")
+(setq-default line-spacing 2)
+(setq org-startup-with-latex-preview t)
+(setq-default org-startup-indented t
+ org-pretty-entities t
+ org-use-sub-superscripts "{}"
+ org-hide-emphasis-markers t
+ org-startup-with-inline-images t
+ org-image-actual-width '(300))
(setq-default fill-column 100)
(add-hook 'text-mode-hook #'auto-fill-mode)
@@ -33,57 +47,58 @@
(setopt display-fill-column-indicator-column 100)
(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)
(add-hook 'org-mode-hook #'display-fill-column-indicator-mode)
+(setq TeX-engine 'xetex)
(add-hook 'prog-mode-hook
- (lambda ()
- (setq prettify-symbols-alist
- '(("lambda" . ?λ)
- ("->" . ?→)
- ("map" . ?↦)
- ("/=" . ?≠)
- ("!=" . ?≠)
- ("==" . ?≡)
- ("<=" . ?≤)
- (">=" . ?≥)
- ("&&" . ?∧)
- ("||" . ?∨)
- ("sqrt" . ?√)
- ("..." . ?…)))
- (prettify-symbols-mode)))
+ (lambda ()
+ (setq prettify-symbols-alist
+ '(("lambda" . ?λ)
+ ("->" . ?→)
+ ("map" . ?↦)
+ ("/=" . ?≠)
+ ("!=" . ?≠)
+ ("==" . ?≡)
+ ("<=" . ?≤)
+ (">=" . ?≥)
+ ("&&" . ?∧)
+ ("||" . ?∨)
+ ("sqrt" . ?√)
+ ("..." . ?…)))
+ (prettify-symbols-mode)))
(add-hook 'org-mode-hook (lambda ()
- (setq prettify-symbols-alist
- '(("#+begin_src" . ?)
- ("#+BEGIN_SRC" . ?)
- ("#+end_src" . ?)
- ("#+END_SRC" . ?)
- ("#+begin_example" . ?)
- ("#+BEGIN_EXAMPLE" . ?)
- ("#+end_example" . ?)
- ("#+END_EXAMPLE" . ?)
- ("#+header:" . ?)
- ("#+HEADER:" . ?)
- ("#+name:" . ?﮸)
- ("#+NAME:" . ?﮸)
- ("#+results:" . ?)
- ("#+RESULTS:" . ?)
- ("#+call:" . ?)
- ("#+CALL:" . ?)
- (":PROPERTIES:" . ?)
- (":properties:" . ?)
- ("lambda" . ?λ)
- ("->" . ?→)
- ("map" . ?↦)
- ("/=" . ?≠)
- ("!=" . ?≠)
- ("==" . ?≡)
- ("<=" . ?≤)
- (">=" . ?≥)
- ("&&" . ?∧)
- ("||" . ?∨)
- ("sqrt" . ?√)
- ("..." . ?…))))
- (prettify-symbols-mode))
+ (setq prettify-symbols-alist
+ '(("#+begin_src" . ?)
+ ("#+BEGIN_SRC" . ?)
+ ("#+end_src" . ?)
+ ("#+END_SRC" . ?)
+ ("#+begin_example" . ?)
+ ("#+BEGIN_EXAMPLE" . ?)
+ ("#+end_example" . ?)
+ ("#+END_EXAMPLE" . ?)
+ ("#+header:" . ?)
+ ("#+HEADER:" . ?)
+ ("#+name:" . ?﮸)
+ ("#+NAME:" . ?﮸)
+ ("#+results:" . ?)
+ ("#+RESULTS:" . ?)
+ ("#+call:" . ?)
+ ("#+CALL:" . ?)
+ (":PROPERTIES:" . ?)
+ (":properties:" . ?)
+ ("lambda" . ?λ)
+ ("->" . ?→)
+ ("map" . ?↦)
+ ("/=" . ?≠)
+ ("!=" . ?≠)
+ ("==" . ?≡)
+ ("<=" . ?≤)
+ (">=" . ?≥)
+ ("&&" . ?∧)
+ ("||" . ?∨)
+ ("sqrt" . ?√)
+ ("..." . ?…))))
+ (prettify-symbols-mode))
(global-prettify-symbols-mode 1)
(use-package unicode-fonts
@@ -99,28 +114,28 @@
(require 'org-habit)
(setq org-agenda-files (list "~/org/agenda.org"
- "~/org/notes.org"))
+ "~/org/notes.org"))
(setq org-default-notes-file (concat org-directory "/notes.org"))
(setq org-habit-preceding-days 1)
(require 'ox-publish)
(setq org-publish-project-alist
- '(("website-org"
- :base-directory "~/org/website"
- :base-extension "org"
- :publishing-directory "~/website_html"
- :recursive t
- :publishing-function org-html-publish-to-html
- :headline-levels 4
- :html-preamble t
- :html-preamble-format (("en" "<p class=\"preamble\"><a href=\"/index.html\">home</a> | <a href=\"./index.html\">section main page</a></p><hr>")))
- ("website-static"
- :base-directory "~/org/website"
- :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|ico"
- :publishing-directory "~/website_html/"
- :recursive t
- :publishing-function org-publish-attachment)
- ("website" :auto-sitemap t :components ("website-org" "website-static"))))
+ '(("website-org"
+ :base-directory "~/org/website"
+ :base-extension "org"
+ :publishing-directory "~/website_html"
+ :recursive t
+ :publishing-function org-html-publish-to-html
+ :headline-levels 4
+ :html-preamble t
+ :html-preamble-format (("en" "<p class=\"preamble\"><a href=\"/index.html\">home</a> | <a href=\"./index.html\">section main page</a></p><hr>")))
+ ("website-static"
+ :base-directory "~/org/website"
+ :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|ico\\|asc\\|pub\\|webmanifest\\|xml"
+ :publishing-directory "~/website_html/"
+ :recursive t
+ :publishing-function org-publish-attachment)
+ ("website" :auto-sitemap t :components ("website-org" "website-static"))))
;; (setq org-export-html-postamble-format '(("en" "<p class=\"preamble\"><a href=\"../index.html\">previous page</a> | <a href=\"/index.html\">home</a></p>")))
(setq org-html-postamble "Copyright © 2024 Preston Pan")
@@ -131,18 +146,18 @@ Otherwise, just insert the typed character."
(if (eolp) (let (parens-require-spaces) (insert-pair)) (self-insert-command 1)))
(add-hook 'org-mode-hook
- (lambda ()
- (define-key org-mode-map "\"" 'electric-pair)
- (define-key org-mode-map "(" 'electric-pair)
- (define-key org-mode-map "[" 'electric-pair)
- (define-key org-mode-map "{" 'electric-pair)))
+ (lambda ()
+ (define-key org-mode-map "\"" 'electric-pair)
+ (define-key org-mode-map "(" 'electric-pair)
+ (define-key org-mode-map "[" 'electric-pair)
+ (define-key org-mode-map "{" 'electric-pair)))
(add-hook 'prog-mode-hook
- (lambda ()
- (define-key prog-mode-map "\"" 'electric-pair)
- (define-key prog-mode-map "(" 'electric-pair)
- (define-key prog-mode-map "[" 'electric-pair)
- (define-key prog-mode-map "{" 'electric-pair)))
+ (lambda ()
+ (define-key prog-mode-map "\"" 'electric-pair)
+ (define-key prog-mode-map "(" 'electric-pair)
+ (define-key prog-mode-map "[" 'electric-pair)
+ (define-key prog-mode-map "{" 'electric-pair)))
(electric-pair-mode)
(use-package lyrics-fetcher
@@ -159,12 +174,12 @@ Otherwise, just insert the typed character."
(add-to-list 'yas-snippet-dirs "~/org/website/yasnippet/")
(yas-global-mode 1))
(add-hook 'org-mode-hook
- (lambda () (yas-minor-mode)
- (yas-activate-extra-mode 'latex-mode)))
+ (lambda () (yas-minor-mode)
+ (yas-activate-extra-mode 'latex-mode)))
(eval-after-load "company" '(add-to-list 'company-backends
- '(company-ispell company-capf company-irony
- company-yasnippet company-files)))
+ '(company-ispell company-capf company-irony
+ company-yasnippet company-files)))
(add-hook 'after-init-hook 'global-company-mode)
(use-package ispell
:init
@@ -178,9 +193,9 @@ Otherwise, just insert the typed character."
(org-babel-do-load-languages 'org-babel-load-languages
'(
- (shell . t)
- (python . t)
- (latex . t)
+ (shell . t)
+ (python . t)
+ (latex . t)
)
)
@@ -231,11 +246,11 @@ Otherwise, just insert the typed character."
(defun org-journal-file-header-func (time)
"Custom function to create journal header."
(concat
- (pcase org-journal-file-type
- (`daily "#+TITLE: Daily Journal\n#+STARTUP: showeverything\n#+DESCRIPTION: My daily journal entry\n#+AUTHOR: Preston Pan\n#+HTML_HEAD: <link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\" />\n#+html_head: <script src=\"https://polyfill.io/v3/polyfill.min.js?features=es6\"></script>\n#+html_head: <script id=\"MathJax-script\" async src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"></script>\n#+options: broken-links:t")
- (`weekly "#+TITLE: Weekly Journal\n#+STARTUP: folded")
- (`monthly "#+TITLE: Monthly Journal\n#+STARTUP: folded")
- (`yearly "#+TITLE: Yearly Journal\n#+STARTUP: folded"))))
+ (pcase org-journal-file-type
+ (`daily "#+TITLE: Daily Journal\n#+STARTUP: showeverything\n#+DESCRIPTION: My daily journal entry\n#+AUTHOR: Preston Pan\n#+HTML_HEAD: <link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\" />\n#+html_head: <script src=\"https://polyfill.io/v3/polyfill.min.js?features=es6\"></script>\n#+html_head: <script id=\"MathJax-script\" async src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"></script>\n#+options: broken-links:t")
+ (`weekly "#+TITLE: Weekly Journal\n#+STARTUP: folded")
+ (`monthly "#+TITLE: Monthly Journal\n#+STARTUP: folded")
+ (`yearly "#+TITLE: Yearly Journal\n#+STARTUP: folded"))))
(setq org-journal-file-header 'org-journal-file-header-func)
(setq org-journal-file-format "%Y%m%d.org")
@@ -302,10 +317,10 @@ Otherwise, just insert the typed character."
(setq dashboard-set-init-info t)
(setq dashboard-week-agenda t)
(setq dashboard-items '((recents . 5)
- (bookmarks . 5)
- (projects . 5)
- (agenda . 5)
- (registers . 5)))
+ (bookmarks . 5)
+ (projects . 5)
+ (agenda . 5)
+ (registers . 5)))
:config
(dashboard-setup-startup-hook))
@@ -345,18 +360,18 @@ Otherwise, just insert the typed character."
(defun prestonpan ()
(interactive)
(erc-tls :server "nullring.xyz"
- :port "6697"))
+ :port "6697"))
(defun liberachat ()
(interactive)
(erc-tls :server "irc.libera.chat"
- :port "6697"))
+ :port "6697"))
(defun efnet ()
(interactive)
(erc-tls :server "irc.prison.net"
- :port "6697"))
+ :port "6697"))
(defun matrix-org ()
(interactive)
@@ -423,8 +438,8 @@ Otherwise, just insert the typed character."
(require 'llm-ollama)
(with-eval-after-load 'llm-ollama)
(setopt ellama-provider (make-llm-ollama
- :host "localhost"
- :chat-model "gemma:7b")))
+ :host "localhost"
+ :chat-model "gemma:7b")))
(use-package elfeed
:init
@@ -453,8 +468,8 @@ Otherwise, just insert the typed character."
(setq search-engine-default "google")
(setq eww-search-prefix "https://google.com/search?q=")
-(setq browse-url-secondary-browser-function 'browse-url-generic browse-url-generic-program "chromium")
-(setq browse-url-browser-function 'eww-browse-url)
+(setq browse-url-secondary-browser-function 'browse-url-generic browse-url-generic-program "firefox")
+;; (setq browse-url-browser-function "firefox")
(add-hook 'eww-mode-hook
(lambda () (local-set-key (kbd "y Y") #'eww-copy-page-url)))
@@ -465,8 +480,8 @@ Otherwise, just insert the typed character."
(setq org-roam-directory (file-truename "~/org/website/mindmap"))
(setq org-roam-capture-templates '(("d" "default" plain "%?"
:target (file+head "${title}.org"
- "#+title: ${title}\n#+author: Preston Pan\n#+html_head: <link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\" />\n#+html_head: <script src=\"https://polyfill.io/v3/polyfill.min.js?features=es6\"></script>\n#+html_head: <script id=\"MathJax-script\" async src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"></script>\n#+options: broken-links:t")
- :unnarrowed t)))
+ "#+title: ${title}\n#+author: Preston Pan\n#+html_head: <link rel=\"stylesheet\" type=\"text/css\" href=\"../style.css\" />\n#+html_head: <script src=\"https://polyfill.io/v3/polyfill.min.js?features=es6\"></script>\n#+html_head: <script id=\"MathJax-script\" async src=\"https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js\"></script>\n#+options: broken-links:t")
+ :unnarrowed t)))
:config
(org-roam-db-autosync-mode))
@@ -475,9 +490,9 @@ Otherwise, just insert the typed character."
:hook (after-init . org-roam-ui-mode)
:config
(setq org-roam-ui-sync-theme t
- org-roam-ui-follow t
- org-roam-ui-update-on-save t
- org-roam-ui-open-on-start t))
+ org-roam-ui-follow t
+ org-roam-ui-update-on-save t
+ org-roam-ui-open-on-start t))
(use-package pinentry
:init (setq epa-pinentry-mode `loopback)
@@ -494,10 +509,10 @@ Otherwise, just insert the typed character."
(setq user-mail-address "preston@nullring.xyz")
(setq user-full-name "Preston Pan")
(setq sendmail-program "msmtp"
- send-mail-function 'smtpmail-send-it
- message-sendmail-f-is-evil t
- message-sendmail-extra-arguments '("--read-envelope-from")
- message-send-mail-function 'message-send-mail-with-sendmail)
+ send-mail-function 'smtpmail-send-it
+ message-sendmail-f-is-evil t
+ message-sendmail-extra-arguments '("--read-envelope-from")
+ message-send-mail-function 'message-send-mail-with-sendmail)
(require 'smtpmail)
(use-package mu4e
@@ -513,14 +528,14 @@ Otherwise, just insert the typed character."
(setq message-kill-buffer-on-exit t)
(setq mu4e-compose-dont-reply-to-self t)
(setq mu4e-change-filenames-when-moving t)
- (setq mu4e-get-mail-command "mbsync prestonpan")
+ (setq mu4e-get-mail-command "mbsync ret2pop")
(setq mu4e-compose-reply-ignore-address '("no-?reply" "ret2pop@gmail.com"))
(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
- mu4e-view-show-images t ; show images in the view buffer
- mu4e-compose-signature-auto-include nil ; I don't want a message signature
- mu4e-use-fancy-chars t))
+ mu4e-update-interval 300 ; seconds between each mail retrieval
+ mu4e-headers-auto-update t ; avoid to type `g' to update
+ mu4e-view-show-images t ; show images in the view buffer
+ mu4e-compose-signature-auto-include nil ; I don't want a message signature
+ mu4e-use-fancy-chars t))
(use-package ivy-pass)
diff --git a/config/emacs.org b/config/emacs.org
index 6b91f82..b46f973 100644
--- a/config/emacs.org
+++ b/config/emacs.org
@@ -1,4 +1,4 @@
-#+TITLE: Emacs Configuration
+#+title: Emacs Configuration
#+AUTHOR: Preston Pan
#+DESCRIPTION: my personal emacs configuration for nixOS
#+html_head: <link rel="stylesheet" type="text/css" href="../style.css" />
@@ -12,6 +12,7 @@ emacs-lisp language only to configure variables for said packages, for the most
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:
#+begin_src emacs-lisp
+ (require 'tex-site)
(pixel-scroll-precision-mode 1)
(setq scroll-conservatively 101)
(display-battery-mode 1)
@@ -35,9 +36,22 @@ emacs work in a semi-sane way and make it not look ugly:
(add-hook 'text-mode-hook 'visual-line-mode)
(and window-system (server-start))
(setq debug-ignored-errors
- (cons 'remote-file-error debug-ignored-errors))
+ (cons 'remote-file-error debug-ignored-errors))
(set-face-attribute 'default nil :font "Iosevka Nerd Font" :height 140)
+ (setq preview-default-option-list '("displaymath" "textmath" "graphics"))
+ (setq preview-image-type 'png)
+ (setq org-latex-pdf-process
+ '("xelatex -interaction=nonstopmode -output-directory=%o %f"))
+ (setq org-latex-preview-image-directory "/home/preston/.cache/ltximg/")
(setq org-preview-latex-image-directory "/home/preston/.cache/ltximg/")
+ (setq-default line-spacing 2)
+ (setq org-startup-with-latex-preview t)
+ (setq-default org-startup-indented t
+ org-pretty-entities t
+ org-use-sub-superscripts "{}"
+ org-hide-emphasis-markers t
+ org-startup-with-inline-images t
+ org-image-actual-width '(300))
(setq-default fill-column 100)
(add-hook 'text-mode-hook #'auto-fill-mode)
@@ -47,57 +61,58 @@ emacs work in a semi-sane way and make it not look ugly:
(setopt display-fill-column-indicator-column 100)
(add-hook 'prog-mode-hook #'display-fill-column-indicator-mode)
(add-hook 'org-mode-hook #'display-fill-column-indicator-mode)
+ (setq TeX-engine 'xetex)
(add-hook 'prog-mode-hook
- (lambda ()
- (setq prettify-symbols-alist
- '(("lambda" . ?λ)
- ("->" . ?→)
- ("map" . ?↦)
- ("/=" . ?≠)
- ("!=" . ?≠)
- ("==" . ?≡)
- ("<=" . ?≤)
- (">=" . ?≥)
- ("&&" . ?∧)
- ("||" . ?∨)
- ("sqrt" . ?√)
- ("..." . ?…)))
- (prettify-symbols-mode)))
+ (lambda ()
+ (setq prettify-symbols-alist
+ '(("lambda" . ?λ)
+ ("->" . ?→)
+ ("map" . ?↦)
+ ("/=" . ?≠)
+ ("!=" . ?≠)
+ ("==" . ?≡)
+ ("<=" . ?≤)
+ (">=" . ?≥)
+ ("&&" . ?∧)
+ ("||" . ?∨)
+ ("sqrt" . ?√)
+ ("..." . ?…)))
+ (prettify-symbols-mode)))
(add-hook 'org-mode-hook (lambda ()
- (setq prettify-symbols-alist
- '(("#+begin_src" . ?)
- ("#+BEGIN_SRC" . ?)
- ("#+end_src" . ?)
- ("#+END_SRC" . ?)
- ("#+begin_example" . ?)
- ("#+BEGIN_EXAMPLE" . ?)
- ("#+end_example" . ?)
- ("#+END_EXAMPLE" . ?)
- ("#+header:" . ?)
- ("#+HEADER:" . ?)
- ("#+name:" . ?﮸)
- ("#+NAME:" . ?﮸)
- ("#+results:" . ?)
- ("#+RESULTS:" . ?)
- ("#+call:" . ?)
- ("#+CALL:" . ?)
- (":PROPERTIES:" . ?)
- (":properties:" . ?)
- ("lambda" . ?λ)
- ("->" . ?→)
- ("map" . ?↦)
- ("/=" . ?≠)
- ("!=" . ?≠)
- ("==" . ?≡)
- ("<=" . ?≤)
- (">=" . ?≥)
- ("&&" . ?∧)
- ("||" . ?∨)
- ("sqrt" . ?√)
- ("..." . ?…))))
- (prettify-symbols-mode))
+ (setq prettify-symbols-alist
+ '(("#+begin_src" . ?)
+ ("#+BEGIN_SRC" . ?)
+ ("#+end_src" . ?)
+ ("#+END_SRC" . ?)
+ ("#+begin_example" . ?)
+ ("#+BEGIN_EXAMPLE" . ?)
+ ("#+end_example" . ?)
+ ("#+END_EXAMPLE" . ?)
+ ("#+header:" . ?)
+ ("#+HEADER:" . ?)
+ ("#+name:" . ?﮸)
+ ("#+NAME:" . ?﮸)
+ ("#+results:" . ?)
+ ("#+RESULTS:" . ?)
+ ("#+call:" . ?)
+ ("#+CALL:" . ?)
+ (":PROPERTIES:" . ?)
+ (":properties:" . ?)
+ ("lambda" . ?λ)
+ ("->" . ?→)
+ ("map" . ?↦)
+ ("/=" . ?≠)
+ ("!=" . ?≠)
+ ("==" . ?≡)
+ ("<=" . ?≤)
+ (">=" . ?≥)
+ ("&&" . ?∧)
+ ("||" . ?∨)
+ ("sqrt" . ?√)
+ ("..." . ?…))))
+ (prettify-symbols-mode))
(global-prettify-symbols-mode 1)
#+end_src
* Unicode
@@ -145,7 +160,7 @@ This is the configuration required to publish my website:
:html-preamble-format (("en" "<p class=\"preamble\"><a href=\"/index.html\">home</a> | <a href=\"./index.html\">section main page</a></p><hr>")))
("website-static"
:base-directory "~/org/website"
- :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|ico"
+ :base-extension "css\\|js\\|png\\|jpg\\|gif\\|pdf\\|mp3\\|ogg\\|swf\\|ico\\|asc\\|pub\\|webmanifest\\|xml"
:publishing-directory "~/website_html/"
:recursive t
:publishing-function org-publish-attachment)
@@ -555,8 +570,8 @@ to Chromium if I have to:
(setq search-engine-default "google")
(setq eww-search-prefix "https://google.com/search?q=")
-(setq browse-url-secondary-browser-function 'browse-url-generic browse-url-generic-program "chromium")
-(setq browse-url-browser-function 'eww-browse-url)
+(setq browse-url-secondary-browser-function 'browse-url-generic browse-url-generic-program "firefox")
+;; (setq browse-url-browser-function "firefox")
(add-hook 'eww-mode-hook
(lambda () (local-set-key (kbd "y Y") #'eww-copy-page-url)))
#+end_src
@@ -628,7 +643,7 @@ Email in emacs can be done with Mu4e.
(setq message-kill-buffer-on-exit t)
(setq mu4e-compose-dont-reply-to-self t)
(setq mu4e-change-filenames-when-moving t)
- (setq mu4e-get-mail-command "mbsync prestonpan")
+ (setq mu4e-get-mail-command "mbsync ret2pop")
(setq mu4e-compose-reply-ignore-address '("no-?reply" "ret2pop@gmail.com"))
(setq mu4e-html2text-command "w3m -T text/html" ; how to hanfle html-formatted emails
mu4e-update-interval 300 ; seconds between each mail retrieval
diff --git a/config/index.org b/config/index.org
index d7f3b53..6057e11 100644
--- a/config/index.org
+++ b/config/index.org
@@ -7,30 +7,30 @@
#+OPTIONS: broken-links:t
* What is this magic?
They're configurations for extremely obscure programs I use. Yeah, I know, I'm somewhat of a hipster myself.
-Also, this is kind of outdated, because I use my [[https://github.com/ret2pop/hyprnixmacs][NixOS Configuration]] instead. Well, I still use the vanilla
+Also, this is kind of outdated, because I use my [[https://git.nullring.xyz/toughnix.git/about][NixOS Configuration]] instead. Well, I still use the vanilla
(not doom) emacs configuration.
** Configurations
Here is a list of my configurations for various programs:
@@html: <div class="links-page">@@
#+begin_src shell :results output raw :exports both
-for f in *;
-do
- if [[ "$f" == "index.org" || "$f" == "README.org" ]]; then
- continue
- fi
- printf -- "- [[file:$f][$f]]\n"
-done
+ for f in *;
+ do
+ if [[ "$f" == "index.org" || "$f" == "README.org" || "$f" == "emacs.el" ]]; then
+ continue
+ fi
+ name="$(grep '^#+title:' "$f" | sed 's/^#+title:[[:space:]]*//')"
+ printf -- "- [[file:$f][$name]]\n"
+ done
#+end_src
#+RESULTS:
-- [[file:doom.org][doom.org]]
-- [[file:elfeed.org][elfeed.org]]
-- [[file:emacs.el][emacs.el]]
-- [[file:emacs.org][emacs.org]]
-- [[file:fish.org][fish.org]]
-- [[file:kmonad.org][kmonad.org]]
-- [[file:nix.org][nix.org]]
-- [[file:qtile.org][qtile.org]]
-- [[file:qutebrowser.org][qutebrowser.org]]
+- [[file:doom.org][Doom Literate Config]]
+- [[file:elfeed.org][Interesting RSS Feeds]]
+- [[file:emacs.org][Emacs Configuration]]
+- [[file:fish.org][Fish RC File]]
+- [[file:kmonad.org][KMonad Configuration]]
+- [[file:nix.org][NixOS Configuration]]
+- [[file:qtile.org][My Qtile Config (Mocha)]]
+- [[file:qutebrowser.org][Qutebrowser Configuration]]
@@html: </div>@@
diff --git a/config/nix.org b/config/nix.org
index 1ff0e0a..0b725c9 100644
--- a/config/nix.org
+++ b/config/nix.org
@@ -1,4 +1,4 @@
-#+TITLE: NixOS Configuration
+#+title: NixOS Configuration
#+AUTHOR: Preston Pan
#+Description: My NixOS configuration in full
#+html_head: <link rel="stylesheet" type="text/css" href="../style.css" />