track new baseline + documentation from previous time
This commit is contained in:
+14
-1
@@ -10,6 +10,7 @@
|
||||
- [[#hacks][Hacks]]
|
||||
- [[#prerequisites][Prerequisites]]
|
||||
- [[#features][Features]]
|
||||
- [[#pdf-export-from-latex-in-tufte-style][PDF export from latex, in tufte style]]
|
||||
- [[#configuration][Configuration]]
|
||||
- [[#troubleshooting][Troubleshooting]]
|
||||
|
||||
@@ -35,13 +36,25 @@ The README was generated by doom emacs when creating a README.org file with it.
|
||||
|
||||
** Hacks
|
||||
Some in file:config.el. Port settings for ~org-roam-server~ are not standard, so need a function. Also some functions for replacing org-roam links with links to their website, for useto export as blog posts.
|
||||
|
||||
* Prerequisites
|
||||
Doom Emacs installation
|
||||
|
||||
* Features
|
||||
# An in-depth list of features, how to use them, and their dependencies.
|
||||
|
||||
** PDF export from latex, in tufte style
|
||||
|
||||
Render to pdf, and open preview : ~SPC m e l o~ (m e - export. l - latex, o - open in pdf viewer)
|
||||
|
||||
putting https://so.nwalsh.com/2020/01/05-latex in my config.el on [[file:20201021093300-macos.org][MacOS]]. Looks like fonts need to go in ~$HOME/Library/Fonts~. And then one needs to run ~sudo texhash~ to actually add the fonts. (https://tex.stackexchange.com/questions/93983/xetex-use-otf-font-macports comment by Alan Munn).
|
||||
|
||||
Added fonts:
|
||||
- ET Bembo: https://github.com/DavidBarts/ET_Bembo ([[file:20210510110643-edward_tufte.org][Tufte]] font)
|
||||
- Raleway: google fonts had it: https://fonts.google.com/specimen/Raleway Readme included https://support.apple.com/en-us/HT201749 documentation on how to install fonts on mac os.
|
||||
- Operator Mono Ssm - this is not a free font apparently. maybe try Fira code instead.
|
||||
- replaced with Fira Mono from google fonts, made by mozilla apparently.
|
||||
|
||||
|
||||
* Configuration
|
||||
# How to configure this module, including common problems and how to address them.
|
||||
|
||||
|
||||
@@ -25,13 +25,24 @@
|
||||
;; There are two ways to load a theme. Both assume the theme is installed and
|
||||
;; available. You can either set `doom-theme' or manually load a theme with the
|
||||
;; `load-theme' function. This is the default:
|
||||
(setq doom-theme 'doom-one)
|
||||
(setq doom-theme 'doom-solarized-light)
|
||||
|
||||
;; general editor customizations
|
||||
(setq display-line-numbers-type 'relative)
|
||||
(setq linum-format "%3d \u2502'")
|
||||
(global-display-line-numbers-mode)
|
||||
|
||||
;; org-mode customizations
|
||||
(setq org-superstar-headline-bullets-list '("⁖" "◉" "○" "✸" "✿"))
|
||||
(setq org-startup-with-inline-images t)
|
||||
|
||||
;; org-roam customizations
|
||||
;; If you use `org' and don't want your org files in the default location below,
|
||||
;; change `org-directory'. It must be set before org loads!
|
||||
(setq org-directory "~/MyDocuments/qwan/essays/willem")
|
||||
(setq org-roam-directory "~/MyDocuments/qwan/essays/willem")
|
||||
; (define-key org-roam-mode-map [mouse-1] #'org-roam-visit-thing)
|
||||
|
||||
|
||||
;; fix pdflatex for pdf export
|
||||
(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin"))
|
||||
@@ -197,32 +208,6 @@
|
||||
|
||||
(setq evil-move-cursor-back nil)
|
||||
|
||||
;;
|
||||
;; from https://github.com/org-roam/org-roam-server/issues/115
|
||||
;; but modified the open to browse-url-button-open-url
|
||||
(use-package org-roam-server
|
||||
:config
|
||||
(setq org-roam-server-host "127.0.0.1"
|
||||
org-roam-server-port 8427
|
||||
org-roam-server-authenticate nil
|
||||
org-roam-server-export-inline-images t
|
||||
org-roam-server-serve-files nil
|
||||
org-roam-server-served-file-extensions '("pdf" "mp4" "ogv")
|
||||
org-roam-server-network-poll t
|
||||
org-roam-server-network-arrows nil
|
||||
org-roam-server-network-label-truncate t
|
||||
org-roam-server-network-label-truncate-length 60
|
||||
org-roam-server-network-label-wrap-length 20))
|
||||
|
||||
(defun org-roam-server-open ()
|
||||
"Ensure the server is active, then open the roam graph."
|
||||
(interactive)
|
||||
(org-roam-server-mode 1)
|
||||
(browse-url-button-open-url (format "http://localhost:%d" org-roam-server-port)))
|
||||
|
||||
(after! org-roam
|
||||
(org-roam-server-mode))
|
||||
|
||||
;; two functions from:
|
||||
;; https://zzamboni.org/post/my-emacs-configuration-with-commentary/#reformatting-an-org-buffer
|
||||
(defun zz/org-reformat-buffer ()
|
||||
|
||||
@@ -3,7 +3,52 @@
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
;; Your init file should contain only one such instance.
|
||||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages '(org-roam-server org-roam)))
|
||||
'(ansi-color-names-vector
|
||||
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
||||
'(custom-safe-themes
|
||||
'("cf922a7a5c514fad79c483048257c5d8f242b21987af0db813d3f0b138dfaf53" "1d5e33500bc9548f800f9e248b57d1b2a9ecde79cb40c0b1398dec51ee820daf" "4f1d2476c290eaa5d9ab9d13b60f2c0f1c8fa7703596fa91b235db7f99a9441b" default))
|
||||
'(exwm-floating-border-color "#191b20")
|
||||
'(fci-rule-color "#5B6268")
|
||||
'(highlight-tail-colors
|
||||
((("#333a38" "#99bb66" "green")
|
||||
. 0)
|
||||
(("#2b3d48" "#46D9FF" "brightcyan")
|
||||
. 20)))
|
||||
'(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef"))
|
||||
'(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65"))
|
||||
'(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a"))
|
||||
'(objed-cursor-color "#ff6c6b")
|
||||
'(pdf-view-midnight-colors (cons "#bbc2cf" "#282c34"))
|
||||
'(rustic-ansi-faces
|
||||
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
||||
'(safe-local-variable-values
|
||||
'((eval setq-local org-roam-db-location
|
||||
(expand-file-name "org-roam.db" org-roam-directory))
|
||||
(eval setq-local org-roam-directory
|
||||
(expand-file-name
|
||||
(locate-dominating-file default-directory ".dir-locals.el")))))
|
||||
'(vc-annotate-background "#282c34")
|
||||
'(vc-annotate-color-map
|
||||
(list
|
||||
(cons 20 "#98be65")
|
||||
(cons 40 "#b4be6c")
|
||||
(cons 60 "#d0be73")
|
||||
(cons 80 "#ECBE7B")
|
||||
(cons 100 "#e6ab6a")
|
||||
(cons 120 "#e09859")
|
||||
(cons 140 "#da8548")
|
||||
(cons 160 "#d38079")
|
||||
(cons 180 "#cc7cab")
|
||||
(cons 200 "#c678dd")
|
||||
(cons 220 "#d974b7")
|
||||
(cons 240 "#ec7091")
|
||||
(cons 260 "#ff6c6b")
|
||||
(cons 280 "#cf6162")
|
||||
(cons 300 "#9f585a")
|
||||
(cons 320 "#6f4e52")
|
||||
(cons 340 "#5B6268")
|
||||
(cons 360 "#5B6268")))
|
||||
'(vc-annotate-very-old-color nil))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
doom ; what makes DOOM look the way it does
|
||||
doom-dashboard ; a nifty splash screen for Emacs
|
||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||
;;(emoji +unicode) ; 🙂
|
||||
(emoji +unicode) ; 🙂
|
||||
;;fill-column ; a `fill-column' indicator
|
||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||
;;hydra
|
||||
@@ -56,7 +56,7 @@
|
||||
|
||||
:editor
|
||||
(evil +everywhere); come to the dark side, we have cookies
|
||||
file-templates ; auto-snippets for empty files
|
||||
file-templates ; auto-snippets for empty f#[warn(dead_code)]iles
|
||||
fold ; (nigh) universal code folding
|
||||
;;(format +onsave) ; automated prettiness
|
||||
;;god ; run Emacs commands without modifier keys
|
||||
@@ -96,7 +96,7 @@
|
||||
(eval +overlay) ; run code, run (also, repls)
|
||||
;;gist ; interacting with github gists
|
||||
lookup ; navigate your code and its documentation
|
||||
;;lsp
|
||||
lsp
|
||||
magit ; a git porcelain for Emacs
|
||||
;;make ; run make tasks from Emacs
|
||||
;;pass ; password manager for nerds
|
||||
@@ -149,7 +149,7 @@
|
||||
;;nim ; python + lisp at the speed of c
|
||||
;;nix ; I hereby declare "nix geht mehr!"
|
||||
;;ocaml ; an objective camel
|
||||
(org +roam +download-dnd) ; organize your plain life in plain text
|
||||
(org +pretty +roam2 +download-dnd) ; organize your plain life in plain text
|
||||
;;php ; perl's insecure younger brother
|
||||
plantuml ; diagrams for confusing people more
|
||||
purescript ; javascript, but functional
|
||||
@@ -160,7 +160,7 @@
|
||||
;;rest ; Emacs as a REST client
|
||||
;;rst ; ReST in peace
|
||||
;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"}
|
||||
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
(rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
|
||||
;;scala ; java, but good
|
||||
;;scheme ; a fully conniving family of lisps
|
||||
typescript
|
||||
|
||||
Reference in New Issue
Block a user