add mastodon
This commit is contained in:
@@ -44,6 +44,10 @@
|
|||||||
; (define-key org-roam-mode-map [mouse-1] #'org-roam-visit-thing)
|
; (define-key org-roam-mode-map [mouse-1] #'org-roam-visit-thing)
|
||||||
|
|
||||||
(require 'org-roam)
|
(require 'org-roam)
|
||||||
|
|
||||||
|
(setq mastodon-instance-url "https://mastodon.social"
|
||||||
|
mastodon-active-user "mostalive")
|
||||||
|
|
||||||
;; elixir
|
;; elixir
|
||||||
;; inspiration https://medium.com/@victor.nascimento/elixir-emacs-development-2023-edition-1a6ccc40629
|
;; inspiration https://medium.com/@victor.nascimento/elixir-emacs-development-2023-edition-1a6ccc40629
|
||||||
(use-package
|
(use-package
|
||||||
@@ -82,6 +86,7 @@
|
|||||||
(push '("|>" . ?\u25B7) prettify-symbols-alist)))
|
(push '("|>" . ?\u25B7) prettify-symbols-alist)))
|
||||||
(before-save . eglot-format))
|
(before-save . eglot-format))
|
||||||
|
|
||||||
|
(add-hook 'after-init-hook #'global-mise-mode)
|
||||||
|
|
||||||
;; fix pdflatex for pdf export
|
;; fix pdflatex for pdf export
|
||||||
(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin"))
|
(setenv "PATH" (concat (getenv "PATH") ":/Library/TeX/texbin"))
|
||||||
@@ -311,9 +316,13 @@ only the description"
|
|||||||
(delete-region link-begin (- link-end 1))
|
(delete-region link-begin (- link-end 1))
|
||||||
(insert content)))))))
|
(insert content)))))))
|
||||||
(bind-key "C-c r" 'qwan/org-replace-link-by-link-description)
|
(bind-key "C-c r" 'qwan/org-replace-link-by-link-description)
|
||||||
|
|
||||||
(defun org-roam-replace-file-link-by-website-or-description ()
|
(defun org-roam-replace-file-link-by-website-or-description ()
|
||||||
"If a linked org-roam file has a website as key, use that as the link target instead of the filename. Otherwise, remove the link, and leave just
|
"If a linked org-roam file has a website as key,
|
||||||
the description. This may destroy existing links, or change their targets so use in a copy of buffers you hold dearly as notes"
|
use that as the link target instead of the filename.
|
||||||
|
Otherwise, remove the link, and leave just the description.
|
||||||
|
This may destroy existing links, or change their targets so
|
||||||
|
use in a copy of buffers you hold dearly as notes"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let ((elem (org-element-context)))
|
(let ((elem (org-element-context)))
|
||||||
(if (eq (car elem) 'link)
|
(if (eq (car elem) 'link)
|
||||||
@@ -421,7 +430,8 @@ the description. This may destroy existing links, or change their targets so use
|
|||||||
;; tests are better than literate programming when you want to triangulate on the same function
|
;; tests are better than literate programming when you want to triangulate on the same function
|
||||||
;; org only shows the last return value by default, you can return a list of course, but still
|
;; org only shows the last return value by default, you can return a list of course, but still
|
||||||
(defun as-function-name (candidate-name)
|
(defun as-function-name (candidate-name)
|
||||||
"Take the string and make it suitable to be a function name. Replaces space with dash and make string all lowercase."
|
"Take the string and make it suitable to be a function name.
|
||||||
|
Replaces space with dash and make string all lowercase."
|
||||||
(declare (side-effect-free t))
|
(declare (side-effect-free t))
|
||||||
(s-join "-" (mapcar 'downcase (split-string candidate-name " " t))))
|
(s-join "-" (mapcar 'downcase (split-string candidate-name " " t))))
|
||||||
;; (s-join "-" (mapcar 'downcase (s-split-words s))))
|
;; (s-join "-" (mapcar 'downcase (s-split-words s))))
|
||||||
|
|||||||
@@ -6,64 +6,51 @@
|
|||||||
'(ansi-color-names-vector
|
'(ansi-color-names-vector
|
||||||
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
||||||
'(custom-safe-themes
|
'(custom-safe-themes
|
||||||
'("a138ec18a6b926ea9d66e61aac28f5ce99739cf38566876dc31e29ec8757f6e2" "636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561" "cf922a7a5c514fad79c483048257c5d8f242b21987af0db813d3f0b138dfaf53" "1d5e33500bc9548f800f9e248b57d1b2a9ecde79cb40c0b1398dec51ee820daf" "4f1d2476c290eaa5d9ab9d13b60f2c0f1c8fa7703596fa91b235db7f99a9441b" default))
|
'("a138ec18a6b926ea9d66e61aac28f5ce99739cf38566876dc31e29ec8757f6e2"
|
||||||
|
"636b135e4b7c86ac41375da39ade929e2bd6439de8901f53f88fde7dd5ac3561"
|
||||||
|
"cf922a7a5c514fad79c483048257c5d8f242b21987af0db813d3f0b138dfaf53"
|
||||||
|
"1d5e33500bc9548f800f9e248b57d1b2a9ecde79cb40c0b1398dec51ee820daf"
|
||||||
|
"4f1d2476c290eaa5d9ab9d13b60f2c0f1c8fa7703596fa91b235db7f99a9441b" default))
|
||||||
'(elfeed-feeds
|
'(elfeed-feeds
|
||||||
'("https://www.htmhell.dev/feed_tips.xml" "https://www.drcathicks.com/blog-feed.xml" "https://pluralistic.net/feed/" "https://www.qwan.eu/feed.xml"))
|
'("https://www.htmhell.dev/feed_tips.xml"
|
||||||
|
"https://www.drcathicks.com/blog-feed.xml" "https://pluralistic.net/feed/"
|
||||||
|
"https://www.qwan.eu/feed.xml"))
|
||||||
'(exwm-floating-border-color "#191b20")
|
'(exwm-floating-border-color "#191b20")
|
||||||
'(fci-rule-color "#5B6268")
|
'(fci-rule-color "#5B6268")
|
||||||
'(highlight-tail-colors
|
'(highlight-tail-colors
|
||||||
((("#333a38" "#99bb66" "green")
|
((("#333a38" "#99bb66" "green") . 0) (("#2b3d48" "#46D9FF" "brightcyan") . 20)))
|
||||||
. 0)
|
|
||||||
(("#2b3d48" "#46D9FF" "brightcyan")
|
|
||||||
. 20)))
|
|
||||||
'(ignored-local-variable-values
|
'(ignored-local-variable-values
|
||||||
'((eval setq-local org-roam-db-location
|
'((eval setq-local org-roam-db-location
|
||||||
(expand-file-name "org-roam.db" org-roam-directory))
|
(expand-file-name "org-roam.db" org-roam-directory))
|
||||||
(eval setq-local org-roam-directory
|
(eval setq-local org-roam-directory
|
||||||
(expand-file-name
|
(expand-file-name
|
||||||
(locate-dominating-file default-directory ".dir-locals.el")))))
|
(locate-dominating-file default-directory ".dir-locals.el")))))
|
||||||
'(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef"))
|
'(jdee-db-active-breakpoint-face-colors (cons "#1B2229" "#51afef"))
|
||||||
'(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65"))
|
'(jdee-db-requested-breakpoint-face-colors (cons "#1B2229" "#98be65"))
|
||||||
'(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a"))
|
'(jdee-db-spec-breakpoint-face-colors (cons "#1B2229" "#3f444a"))
|
||||||
'(objed-cursor-color "#ff6c6b")
|
'(objed-cursor-color "#ff6c6b")
|
||||||
'(org-agenda-files '("~/MyDocuments/qwan/essays/willem/daily/2023-01-16.org"))
|
'(org-agenda-files '("~/MyDocuments/qwan/essays/willem/daily/2023-01-16.org"))
|
||||||
'(package-selected-packages '(magit-delta))
|
'(package-selected-packages '(magit-delta mise vterm))
|
||||||
'(pdf-view-midnight-colors (cons "#bbc2cf" "#282c34"))
|
'(pdf-view-midnight-colors (cons "#bbc2cf" "#282c34"))
|
||||||
'(rustic-ansi-faces
|
'(rustic-ansi-faces
|
||||||
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
["#282c34" "#ff6c6b" "#98be65" "#ECBE7B" "#51afef" "#c678dd" "#46D9FF" "#bbc2cf"])
|
||||||
'(safe-local-variable-values
|
'(safe-local-variable-values
|
||||||
'((eval setq-local org-roam-db-location
|
'((eval setq-local org-roam-db-location
|
||||||
(expand-file-name "org-roam.db" org-roam-directory))
|
(expand-file-name "org-roam.db" org-roam-directory))
|
||||||
(eval setq-local org-roam-directory
|
(eval setq-local org-roam-directory
|
||||||
(expand-file-name
|
(expand-file-name
|
||||||
(locate-dominating-file default-directory ".dir-locals.el")))))
|
(locate-dominating-file default-directory ".dir-locals.el")))))
|
||||||
'(vc-annotate-background "#282c34")
|
'(vc-annotate-background "#282c34")
|
||||||
'(vc-annotate-color-map
|
'(vc-annotate-color-map
|
||||||
(list
|
(list (cons 20 "#98be65") (cons 40 "#b4be6c") (cons 60 "#d0be73")
|
||||||
(cons 20 "#98be65")
|
(cons 80 "#ECBE7B") (cons 100 "#e6ab6a") (cons 120 "#e09859")
|
||||||
(cons 40 "#b4be6c")
|
(cons 140 "#da8548") (cons 160 "#d38079") (cons 180 "#cc7cab")
|
||||||
(cons 60 "#d0be73")
|
(cons 200 "#c678dd") (cons 220 "#d974b7") (cons 240 "#ec7091")
|
||||||
(cons 80 "#ECBE7B")
|
(cons 260 "#ff6c6b") (cons 280 "#cf6162") (cons 300 "#9f585a")
|
||||||
(cons 100 "#e6ab6a")
|
(cons 320 "#6f4e52") (cons 340 "#5B6268") (cons 360 "#5B6268")))
|
||||||
(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)
|
'(vc-annotate-very-old-color nil)
|
||||||
'(warning-suppress-types
|
'(warning-suppress-types
|
||||||
'((org-element-cache)
|
'((org-element-cache) (org-element-cache) (org-element-cache) (defvaralias))))
|
||||||
(org-element-cache)
|
|
||||||
(org-element-cache)
|
|
||||||
(defvaralias))))
|
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
;; custom-set-faces was added by Custom.
|
;; custom-set-faces was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|||||||
@@ -123,7 +123,7 @@
|
|||||||
;;csharp ; unity, .NET, and mono shenanigans
|
;;csharp ; unity, .NET, and mono shenanigans
|
||||||
;;data ; config/data formats
|
;;data ; config/data formats
|
||||||
;;(dart +flutter) ; paint ui and not much else
|
;;(dart +flutter) ; paint ui and not much else
|
||||||
;; (elixir +lsp) ; erlang done right
|
(elixir +lsp) ; erlang done right
|
||||||
;;elm ; care for a cup of TEA?
|
;;elm ; care for a cup of TEA?
|
||||||
emacs-lisp ; drown in parentheses
|
emacs-lisp ; drown in parentheses
|
||||||
;;erlang ; an elegant language for a more civilized age
|
;;erlang ; an elegant language for a more civilized age
|
||||||
@@ -133,7 +133,7 @@
|
|||||||
;;fstar ; (dependent) types and (monadic) effects and Z3
|
;;fstar ; (dependent) types and (monadic) effects and Z3
|
||||||
;;gdscript ; the language you waited for
|
;;gdscript ; the language you waited for
|
||||||
;;(go +lsp) ; the hipster dialect
|
;;(go +lsp) ; the hipster dialect
|
||||||
;;(haskell +dante) ; a language that's lazier than I am
|
;; (haskell +lsp) ; a language that's lazier than I am
|
||||||
;;hy ; readability of scheme w/ speed of python
|
;;hy ; readability of scheme w/ speed of python
|
||||||
;;idris ; a language you can depend on
|
;;idris ; a language you can depend on
|
||||||
;; json ; At least it ain't XML
|
;; json ; At least it ain't XML
|
||||||
@@ -150,7 +150,7 @@
|
|||||||
;;nim ; python + lisp at the speed of c
|
;;nim ; python + lisp at the speed of c
|
||||||
;;nix ; I hereby declare "nix geht mehr!"
|
;;nix ; I hereby declare "nix geht mehr!"
|
||||||
;;ocaml ; an objective camel
|
;;ocaml ; an objective camel
|
||||||
(org +pomodoro +gnuplot +pretty +roam2 +download-dnd) ; organize your plain life in plain text
|
(org +pomodoro +gnuplot +pretty +roam2 +download-dnd +present) ; organize your plain life in plain text
|
||||||
;;php ; perl's insecure younger brother
|
;;php ; perl's insecure younger brother
|
||||||
;; plantuml ; diagrams for confusing people more
|
;; plantuml ; diagrams for confusing people more
|
||||||
;; purescript ; javascript, but functional
|
;; purescript ; javascript, but functional
|
||||||
|
|||||||
@@ -22,6 +22,9 @@
|
|||||||
(package! exunit)
|
(package! exunit)
|
||||||
(package! inf-elixir)
|
(package! inf-elixir)
|
||||||
|
|
||||||
|
(package! mise)
|
||||||
|
|
||||||
|
(package! mastodon)
|
||||||
|
|
||||||
;; craft of emacs
|
;; craft of emacs
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user