elfeed, org-path-find-file, bikeshedding
This commit is contained in:
parent
6b85231fde
commit
a14af6a4ef
|
@ -1,11 +1,60 @@
|
|||
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defun org-path-find-file ()
|
||||
"Open org-path in find file"
|
||||
(interactive)
|
||||
(doom-project-find-file +user-org-path))
|
||||
|
||||
(defun my-org-inline-css-hook (exporter)
|
||||
"Insert custom inline css"
|
||||
(when (eq exporter 'html)
|
||||
(let* ((dir (ignore-errors (file-name-directory (buffer-file-name))))
|
||||
(path (concat dir "style.css"))
|
||||
(fallback-style (or (null dir) (null (file-exists-p path))))
|
||||
(final (if fallback-style "~/.config/doom/style.css" path))) ;; <- set your own style file path
|
||||
(setq org-html-head-include-default-style t)
|
||||
(setq org-html-head (concat
|
||||
"<style type=\"text/css\">\n"
|
||||
"<!--/*--><![CDATA[/*><!--*/\n"
|
||||
(with-temp-buffer
|
||||
(insert-file-contents final)
|
||||
(buffer-string))
|
||||
"/*]]>*/-->\n"
|
||||
"</style>\n")))))
|
||||
|
||||
(defun my-weebery-is-always-greater ()
|
||||
(let* ((banner '("EMACS "
|
||||
"███▄ ▄███▓ ▒█████ ▒█████ ▓█████▄ "
|
||||
"▓██▒▀█▀ ██▒▒██▒ ██▒▒██▒ ██▒▒██▀ ██▌"
|
||||
"▓██ ▓██░▒██░ ██▒▒██░ ██▒░██ █▌"
|
||||
"▒██ ▒██ ▒██ ██░▒██ ██░░▓█▄ ▌"
|
||||
"▒██▒ ░██▒░ ████▓▒░░ ████▓▒░░▒████▓ "
|
||||
"░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░▒░▒░ ▒▒▓ ▒ "
|
||||
"░ ░ ░ ░ ▒ ▒░ ░ ▒ ▒░ ░ ▒ ▒ "
|
||||
"░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒ ░ ░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ "
|
||||
" ░ "))
|
||||
(longest-line (apply #'max (mapcar #'length banner))))
|
||||
(put-text-property
|
||||
(point)
|
||||
(dolist (line banner (point))
|
||||
(insert (+doom-dashboard--center
|
||||
+doom-dashboard--width
|
||||
(concat line (make-string (max 0 (- longest-line (length line))) 32)))
|
||||
"\n"))
|
||||
'face 'doom-dashboard-banner)))
|
||||
|
||||
(map! :n "<f12>" #'org-agenda-list)
|
||||
(map! :n "<f7>" #'org-drill)
|
||||
(map! "C-M-+" #'doom/increase-font-size)
|
||||
|
||||
;; NOTE: Does not work in org-mode src blocks
|
||||
(map! "C-#" #'comment-line)
|
||||
(evil-define-key 'normal dired-mode-map
|
||||
(kbd "DEL") 'dired-up-directory)
|
||||
|
||||
(map! :leader
|
||||
:map doom-leader-file-map
|
||||
:desc "Find org files"
|
||||
"f o" #'org-path-find-file)
|
||||
|
||||
;; Basic User Settings
|
||||
(setq user-full-name "Jonathan Jenne"
|
||||
|
@ -39,8 +88,14 @@
|
|||
|
||||
(use-package! org
|
||||
:config
|
||||
(progn (defun org-path (filename)
|
||||
"Expand filename relative to the default org-path"
|
||||
(expand-file-name filename +user-org-path)))
|
||||
(progn )
|
||||
|
||||
(setq ;; General
|
||||
org-directory +user-org-path
|
||||
org-log-into-drawer "LOGBOOK"
|
||||
org-src-tab-acts-natively t
|
||||
|
||||
;; Org Export
|
||||
|
@ -111,7 +166,7 @@
|
|||
"* %U %?\n" :prepend t)))
|
||||
|
||||
|
||||
:bind (:map org-mode-map ("<localleader> g s" . #'org-habit-stats-view-habit-at-point))
|
||||
:bind (:map org-mode-map("<localleader> g s" . #'org-habit-stats-view-habit-at-point))
|
||||
:hook (org-after-todo-state-change . org-habit-stats-update-properties)
|
||||
:init
|
||||
(add-to-list 'org-modules 'org-habit)
|
||||
|
@ -124,17 +179,16 @@
|
|||
(add-hook 'doom-after-init-hook #'display-battery-mode)
|
||||
(add-hook 'doom-after-init-hook #'display-time-mode)
|
||||
|
||||
(drag-stuff-global-mode t)
|
||||
|
||||
(after! evil-snipe (setq evil-snipe-scope 'whole-visible))
|
||||
(use-package! drag-stuff
|
||||
:init (drag-stuff-global-mode t))
|
||||
|
||||
(use-package! heaven-and-hell
|
||||
:ensure t
|
||||
:config
|
||||
(setq heaven-and-hell-theme-type 'dark ;; Omit to use light by default
|
||||
heaven-and-hell-themes
|
||||
'((light . doom-gruvbox-light)
|
||||
(dark . doom-gruvbox)) ;; Themes can be the list: (dark . (tsdh-dark wombat))
|
||||
'((light . doom-nord-light)
|
||||
(dark . doom-nord)) ;; Themes can be the list: (dark . (tsdh-dark wombat))
|
||||
heaven-and-hell-load-theme-no-confirm t)
|
||||
:hook (after-init . heaven-and-hell-init-hook)
|
||||
:bind (("<f6>" . heaven-and-hell-toggle-theme)))
|
||||
|
@ -158,12 +212,14 @@
|
|||
|
||||
(add-hook! 'nov-mode-hook '(olivetti-mode))
|
||||
|
||||
;; (after! olivetti (setq olivetti-body-width 70))
|
||||
|
||||
(use-package! olivetti
|
||||
:init
|
||||
(add-hook! 'org-mode-hook '(olivetti-mode (lambda () (display-line-numbers-mode -1)))))
|
||||
(add-hook! 'nov-mode-hook 'olivetti-mode)
|
||||
(add-hook! 'org-mode-hook
|
||||
'(olivetti-mode
|
||||
(lambda () (display-line-numbers-mode -1)))))
|
||||
|
||||
;; (after! olivetti (setq olivetti-body-width 70))
|
||||
;; (add-hook! 'org-mode-hook '(olivetti-mode (lambda () (display-line-numbers-mode -1))))
|
||||
|
||||
(use-package! org-auto-tangle
|
||||
|
@ -180,53 +236,85 @@
|
|||
(setq org-noter-doc-split-fraction '(0.75 . 0.75))
|
||||
(setq org-noter-default-notes-file-names '()))
|
||||
|
||||
;; (use-package! roam
|
||||
;; :config (setq org-roam-directory "~/Notes/Org/Roam"
|
||||
;; org-roam-dailies-directory "Daily"))
|
||||
(use-package! org-roam
|
||||
:config (setq org-roam-directory "~/Notes/Org/Roam"
|
||||
org-roam-dailies-directory "Daily"))
|
||||
|
||||
(after! org-roam
|
||||
(setq org-roam-directory "~/Notes/Org/Roam")
|
||||
(setq org-roam-dailies-directory "Daily"))
|
||||
;; (after! org-roam
|
||||
;; (setq org-roam-directory "~/Notes/Org/Roam")
|
||||
;; (setq org-roam-dailies-directory "Daily"))
|
||||
|
||||
(defun org-path (filename)
|
||||
"Expand filename relative to the default org-path"
|
||||
(expand-file-name filename +user-org-path))
|
||||
|
||||
(defun my-org-inline-css-hook (exporter)
|
||||
"Insert custom inline css"
|
||||
(when (eq exporter 'html)
|
||||
(let* ((dir (ignore-errors (file-name-directory (buffer-file-name))))
|
||||
(path (concat dir "style.css"))
|
||||
(fallback-style (or (null dir) (null (file-exists-p path))))
|
||||
(final (if fallback-style "~/.config/doom/style.css" path))) ;; <- set your own style file path
|
||||
(setq org-html-head-include-default-style t)
|
||||
(setq org-html-head (concat
|
||||
"<style type=\"text/css\">\n"
|
||||
"<!--/*--><![CDATA[/*><!--*/\n"
|
||||
(with-temp-buffer
|
||||
(insert-file-contents final)
|
||||
(buffer-string))
|
||||
"/*]]>*/-->\n"
|
||||
"</style>\n")))))
|
||||
|
||||
(defun my-weebery-is-always-greater ()
|
||||
(let* ((banner '("EMACS "
|
||||
"███▄ ▄███▓ ▒█████ ▒█████ ▓█████▄ "
|
||||
"▓██▒▀█▀ ██▒▒██▒ ██▒▒██▒ ██▒▒██▀ ██▌"
|
||||
"▓██ ▓██░▒██░ ██▒▒██░ ██▒░██ █▌"
|
||||
"▒██ ▒██ ▒██ ██░▒██ ██░░▓█▄ ▌"
|
||||
"▒██▒ ░██▒░ ████▓▒░░ ████▓▒░░▒████▓ "
|
||||
"░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░▒░▒░ ▒▒▓ ▒ "
|
||||
"░ ░ ░ ░ ▒ ▒░ ░ ▒ ▒░ ░ ▒ ▒ "
|
||||
"░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒ ░ ░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ "
|
||||
" ░ "))
|
||||
(longest-line (apply #'max (mapcar #'length banner))))
|
||||
(put-text-property
|
||||
(point)
|
||||
(dolist (line banner (point))
|
||||
(insert (+doom-dashboard--center
|
||||
+doom-dashboard--width
|
||||
(concat line (make-string (max 0 (- longest-line (length line))) 32)))
|
||||
"\n"))
|
||||
'face 'doom-dashboard-banner)))
|
||||
(use-package! elfeed
|
||||
:config
|
||||
(setq elfeed-feeds
|
||||
'("https://www.giessen.de/media/rss/Presse.xml"
|
||||
"https://adactio.com/journal/rss"
|
||||
"https://andregarzia.com/feeds/all.atom.xml"
|
||||
"https://ar.al/index.xml"
|
||||
"https://archlinux.org/feeds/news/"
|
||||
"https://ashfurrow.com//feed.xml"
|
||||
"https://bachrauf.org/feed/"
|
||||
"https://beko.famkos.net/feed/"
|
||||
"https://blog.elementary.io/feed.xml"
|
||||
"https://blog.gls.de/feed/"
|
||||
"https://dasklima.podigee.io/feed/mp3"
|
||||
"https://fed.brid.gy/web/inhji.de/feed?format=rss"
|
||||
"https://forgefriends.org/index.xml"
|
||||
"https://forgejo.org/rss.xml"
|
||||
"https://giessen-direkt.de/giessen/de/flexPrjList/54365/feed"
|
||||
"https://github.com/InfiniTimeOrg/InfiniTime/releases.atom"
|
||||
"https://github.com/actualbudget/actual/releases.atom"
|
||||
"https://github.com/ceciliamay/obsidianmd-theme-primary/releases.atom"
|
||||
"https://github.com/dani-garcia/vaultwarden/releases.atom"
|
||||
"https://github.com/extrawurst/gitui/releases.atom"
|
||||
"https://github.com/microg/GmsCore/releases.atom"
|
||||
"https://github.com/noatpad/obsidian-banners/releases.atom"
|
||||
"https://github.com/superseriousbusiness/gotosocial/releases.atom"
|
||||
"https://grimgrains.com/links/rss.xml"
|
||||
"https://jlelse.blog/.rss"
|
||||
"https://katapult-magazin.de/feed/rss"
|
||||
"https://katja-diehl.de/feed/"
|
||||
"https://kevquirk.com/feed"
|
||||
"https://liamcooke.com/feed.xml"
|
||||
"https://maudb.gitlab.io/dok/rss.xml"
|
||||
"https://miniflux.app/feed.xml"
|
||||
"https://mntre.com/reform_md.atom"
|
||||
"https://nesslabs.com/feed"
|
||||
"https://newsfeed.zeit.de/serie/die-kaenguru-comics"
|
||||
"https://nicolevanderhoeven.com/index.xml"
|
||||
"https://noyb.eu/en/rss"
|
||||
"https://obsidian.md/feed.xml"
|
||||
"https://ohhelloana.blog/feed.xml"
|
||||
"https://pluralistic.net/feed/"
|
||||
"https://shkspr.mobi/blog/feed/"
|
||||
"https://smallstar.space/feed/"
|
||||
"https://snikket.org/blog/index.xml"
|
||||
"https://social.prepedia.org/@FediNINA_Giessen.rss"
|
||||
"https://solar.lowtechmagazine.com/posts/index.xml"
|
||||
"https://tarnkappe.info/feed"
|
||||
"https://theoatmeal.com/feed/rss"
|
||||
"https://victoria.dev/atom.xml"
|
||||
"https://warandpeas.com/feed/"
|
||||
"https://warnung.bund.de/api31/mowas/rss/065310000000.rss"
|
||||
"https://webcomicname.com/rss"
|
||||
"https://webdevlaw.uk/feed/"
|
||||
"https://www.commitstrip.com/en/feed/"
|
||||
"https://www.drugsandwires.fail/feed/"
|
||||
"https://www.kuketz-blog.de/category/artikel/feed/"
|
||||
"https://www.kuketz-blog.de/category/microblog/feed/"
|
||||
"https://www.mein-nepal.de/feed/"
|
||||
"https://www.oglaf.com/feeds/rss/"
|
||||
"https://www.piratenpartei-hessen.de/feed/"
|
||||
"https://www.schoenescheisse.de/feed/"
|
||||
"https://www.smbc-comics.com/comic/rss"
|
||||
"https://www.tomorrow.one/de-DE/feed.xml"
|
||||
"https://www.volksverpetzer.de/feed/"
|
||||
"https://www.wetell.de/feed/"
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UC0e3QhIYukixgh5VVpKHH9Q" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCCJ-NJtqLQRxuaxHZA9q6zg" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UClZbO3wehSIsPUKLx_X5caw" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCtUbO6rBht0daVIOGML3c8w" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCyNtlmLB73-7gtlBz00XOQQ" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCzg5UMJ62uoKHTkq5bgkp5g" youtube)
|
||||
"https://zerforschung.org/index.xml"
|
||||
)))
|
||||
|
|
|
@ -11,6 +11,7 @@ This config file is built on doom-emacs ~3.0.0-pre~ and emacs ~29.2~.
|
|||
:VISIBILITY: all
|
||||
:END:
|
||||
- [[#header][Header]]
|
||||
- [[#functions][Functions]]
|
||||
- [[#keybindings][Keybindings]]
|
||||
- [[#base-config][Base Config]]
|
||||
- [[#appearance][Appearance]]
|
||||
|
@ -18,7 +19,6 @@ This config file is built on doom-emacs ~3.0.0-pre~ and emacs ~29.2~.
|
|||
- [[#packages][Packages]]
|
||||
- [[#doom-modeline][doom-modeline]]
|
||||
- [[#drag-stuff][drag-stuff]]
|
||||
- [[#evil-snipe][evil-snipe]]
|
||||
- [[#heaven-and-hell][heaven-and-hell]]
|
||||
- [[#hl-todo][hl-todo]]
|
||||
- [[#novel][nov.el]]
|
||||
|
@ -27,7 +27,7 @@ This config file is built on doom-emacs ~3.0.0-pre~ and emacs ~29.2~.
|
|||
- [[#org-drill][org-drill]]
|
||||
- [[#org-noter][org-noter]]
|
||||
- [[#org-roam][org-roam]]
|
||||
- [[#functions][Functions]]
|
||||
- [[#elfeed][elfeed]]
|
||||
|
||||
* Header
|
||||
This header will be the first codeblock in the config file.
|
||||
|
@ -36,6 +36,56 @@ This header will be the first codeblock in the config file.
|
|||
;;; $DOOMDIR/config.el -*- lexical-binding: t; -*-
|
||||
#+end_src
|
||||
|
||||
* Functions
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(defun org-path-find-file ()
|
||||
"Open org-path in find file"
|
||||
(interactive)
|
||||
(doom-project-find-file +user-org-path))
|
||||
|
||||
(defun my-org-inline-css-hook (exporter)
|
||||
"Insert custom inline css"
|
||||
(when (eq exporter 'html)
|
||||
(let* ((dir (ignore-errors (file-name-directory (buffer-file-name))))
|
||||
(path (concat dir "style.css"))
|
||||
(fallback-style (or (null dir) (null (file-exists-p path))))
|
||||
(final (if fallback-style "~/.config/doom/style.css" path))) ;; <- set your own style file path
|
||||
(setq org-html-head-include-default-style t)
|
||||
(setq org-html-head (concat
|
||||
"<style type=\"text/css\">\n"
|
||||
"<!--/*--><![CDATA[/*><!--*/\n"
|
||||
(with-temp-buffer
|
||||
(insert-file-contents final)
|
||||
(buffer-string))
|
||||
"/*]]>*/-->\n"
|
||||
"</style>\n")))))
|
||||
|
||||
(defun my-weebery-is-always-greater ()
|
||||
(let* ((banner '("EMACS "
|
||||
"███▄ ▄███▓ ▒█████ ▒█████ ▓█████▄ "
|
||||
"▓██▒▀█▀ ██▒▒██▒ ██▒▒██▒ ██▒▒██▀ ██▌"
|
||||
"▓██ ▓██░▒██░ ██▒▒██░ ██▒░██ █▌"
|
||||
"▒██ ▒██ ▒██ ██░▒██ ██░░▓█▄ ▌"
|
||||
"▒██▒ ░██▒░ ████▓▒░░ ████▓▒░░▒████▓ "
|
||||
"░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░▒░▒░ ▒▒▓ ▒ "
|
||||
"░ ░ ░ ░ ▒ ▒░ ░ ▒ ▒░ ░ ▒ ▒ "
|
||||
"░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒ ░ ░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ "
|
||||
" ░ "))
|
||||
(longest-line (apply #'max (mapcar #'length banner))))
|
||||
(put-text-property
|
||||
(point)
|
||||
(dolist (line banner (point))
|
||||
(insert (+doom-dashboard--center
|
||||
+doom-dashboard--width
|
||||
(concat line (make-string (max 0 (- longest-line (length line))) 32)))
|
||||
"\n"))
|
||||
'face 'doom-dashboard-banner)))
|
||||
|
||||
#+end_src
|
||||
|
||||
* Keybindings
|
||||
|
||||
These keybindings extend the default doom bindings, either because the defaults were confusing to me or because the binding did not yet exist.
|
||||
|
@ -57,9 +107,16 @@ These keybindings extend the default doom bindings, either because the defaults
|
|||
(map! :n "<f12>" #'org-agenda-list)
|
||||
(map! :n "<f7>" #'org-drill)
|
||||
(map! "C-M-+" #'doom/increase-font-size)
|
||||
|
||||
;; NOTE: Does not work in org-mode src blocks
|
||||
(map! "C-#" #'comment-line)
|
||||
(evil-define-key 'normal dired-mode-map
|
||||
(kbd "DEL") 'dired-up-directory)
|
||||
|
||||
(map! :leader
|
||||
:map doom-leader-file-map
|
||||
:desc "Find org files"
|
||||
"f o" #'org-path-find-file)
|
||||
|
||||
|
||||
#+end_src
|
||||
|
||||
* Base Config
|
||||
|
@ -115,8 +172,14 @@ There are a few things to point out here:
|
|||
|
||||
(use-package! org
|
||||
:config
|
||||
(progn (defun org-path (filename)
|
||||
"Expand filename relative to the default org-path"
|
||||
(expand-file-name filename +user-org-path)))
|
||||
(progn )
|
||||
|
||||
(setq ;; General
|
||||
org-directory +user-org-path
|
||||
org-log-into-drawer "LOGBOOK"
|
||||
org-src-tab-acts-natively t
|
||||
|
||||
;; Org Export
|
||||
|
@ -187,7 +250,7 @@ There are a few things to point out here:
|
|||
"* %U %?\n" :prepend t)))
|
||||
|
||||
|
||||
:bind (:map org-mode-map ("<localleader> g s" . #'org-habit-stats-view-habit-at-point))
|
||||
:bind (:map org-mode-map("<localleader> g s" . #'org-habit-stats-view-habit-at-point))
|
||||
:hook (org-after-todo-state-change . org-habit-stats-update-properties)
|
||||
:init
|
||||
(add-to-list 'org-modules 'org-habit)
|
||||
|
@ -214,12 +277,10 @@ The doom modeline can be configured to show different information like time and
|
|||
With drag stuff you can use ~M-UP~ and ~M-DOWN~ to move lines. You can also mark a region and use ~M-LEFT~ and ~M-RIGHT~ to move it left and right.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
(drag-stuff-global-mode t)
|
||||
#+end_src
|
||||
** evil-snipe
|
||||
#+begin_src emacs-lisp
|
||||
(after! evil-snipe (setq evil-snipe-scope 'whole-visible))
|
||||
(use-package! drag-stuff
|
||||
:init (drag-stuff-global-mode t))
|
||||
#+end_src
|
||||
|
||||
** heaven-and-hell
|
||||
|
||||
Heaven and hell is a theme switcher, which allows you to select a dark and light theme and toggle between them using a key.
|
||||
|
@ -230,8 +291,8 @@ Heaven and hell is a theme switcher, which allows you to select a dark and light
|
|||
:config
|
||||
(setq heaven-and-hell-theme-type 'dark ;; Omit to use light by default
|
||||
heaven-and-hell-themes
|
||||
'((light . doom-gruvbox-light)
|
||||
(dark . doom-gruvbox)) ;; Themes can be the list: (dark . (tsdh-dark wombat))
|
||||
'((light . doom-nord-light)
|
||||
(dark . doom-nord)) ;; Themes can be the list: (dark . (tsdh-dark wombat))
|
||||
heaven-and-hell-load-theme-no-confirm t)
|
||||
:hook (after-init . heaven-and-hell-init-hook)
|
||||
:bind (("<f6>" . heaven-and-hell-toggle-theme)))
|
||||
|
@ -264,17 +325,21 @@ Heaven and hell is a theme switcher, which allows you to select a dark and light
|
|||
(add-hook! 'nov-mode-hook '(olivetti-mode))
|
||||
|
||||
#+end_src
|
||||
|
||||
** olivetti
|
||||
|
||||
Centers the text. This is used for reading books in
|
||||
Centers the text. This is used for reading books in emacs.
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
;; (after! olivetti (setq olivetti-body-width 70))
|
||||
|
||||
(use-package! olivetti
|
||||
:init
|
||||
(add-hook! 'org-mode-hook '(olivetti-mode (lambda () (display-line-numbers-mode -1)))))
|
||||
(add-hook! 'nov-mode-hook 'olivetti-mode)
|
||||
(add-hook! 'org-mode-hook
|
||||
'(olivetti-mode
|
||||
(lambda () (display-line-numbers-mode -1)))))
|
||||
|
||||
;; (after! olivetti (setq olivetti-body-width 70))
|
||||
;; (add-hook! 'org-mode-hook '(olivetti-mode (lambda () (display-line-numbers-mode -1))))
|
||||
#+end_src
|
||||
|
||||
|
@ -312,60 +377,90 @@ A annotation tool for org-mode
|
|||
#+end_src
|
||||
** org-roam
|
||||
#+begin_src emacs-lisp
|
||||
;; (use-package! roam
|
||||
;; :config (setq org-roam-directory "~/Notes/Org/Roam"
|
||||
;; org-roam-dailies-directory "Daily"))
|
||||
(use-package! org-roam
|
||||
:config (setq org-roam-directory "~/Notes/Org/Roam"
|
||||
org-roam-dailies-directory "Daily"))
|
||||
|
||||
(after! org-roam
|
||||
(setq org-roam-directory "~/Notes/Org/Roam")
|
||||
(setq org-roam-dailies-directory "Daily"))
|
||||
;; (after! org-roam
|
||||
;; (setq org-roam-directory "~/Notes/Org/Roam")
|
||||
;; (setq org-roam-dailies-directory "Daily"))
|
||||
|
||||
#+end_src
|
||||
* Functions
|
||||
** elfeed
|
||||
|
||||
#+begin_src emacs-lisp
|
||||
|
||||
(defun org-path (filename)
|
||||
"Expand filename relative to the default org-path"
|
||||
(expand-file-name filename +user-org-path))
|
||||
|
||||
(defun my-org-inline-css-hook (exporter)
|
||||
"Insert custom inline css"
|
||||
(when (eq exporter 'html)
|
||||
(let* ((dir (ignore-errors (file-name-directory (buffer-file-name))))
|
||||
(path (concat dir "style.css"))
|
||||
(fallback-style (or (null dir) (null (file-exists-p path))))
|
||||
(final (if fallback-style "~/.config/doom/style.css" path))) ;; <- set your own style file path
|
||||
(setq org-html-head-include-default-style t)
|
||||
(setq org-html-head (concat
|
||||
"<style type=\"text/css\">\n"
|
||||
"<!--/*--><![CDATA[/*><!--*/\n"
|
||||
(with-temp-buffer
|
||||
(insert-file-contents final)
|
||||
(buffer-string))
|
||||
"/*]]>*/-->\n"
|
||||
"</style>\n")))))
|
||||
|
||||
(defun my-weebery-is-always-greater ()
|
||||
(let* ((banner '("EMACS "
|
||||
"███▄ ▄███▓ ▒█████ ▒█████ ▓█████▄ "
|
||||
"▓██▒▀█▀ ██▒▒██▒ ██▒▒██▒ ██▒▒██▀ ██▌"
|
||||
"▓██ ▓██░▒██░ ██▒▒██░ ██▒░██ █▌"
|
||||
"▒██ ▒██ ▒██ ██░▒██ ██░░▓█▄ ▌"
|
||||
"▒██▒ ░██▒░ ████▓▒░░ ████▓▒░░▒████▓ "
|
||||
"░ ▒░ ░ ░░ ▒░▒░▒░ ░ ▒░▒░▒░ ▒▒▓ ▒ "
|
||||
"░ ░ ░ ░ ▒ ▒░ ░ ▒ ▒░ ░ ▒ ▒ "
|
||||
"░ ░ ░ ░ ░ ▒ ░ ░ ░ ▒ ░ ░ ░ "
|
||||
" ░ ░ ░ ░ ░ ░ "
|
||||
" ░ "))
|
||||
(longest-line (apply #'max (mapcar #'length banner))))
|
||||
(put-text-property
|
||||
(point)
|
||||
(dolist (line banner (point))
|
||||
(insert (+doom-dashboard--center
|
||||
+doom-dashboard--width
|
||||
(concat line (make-string (max 0 (- longest-line (length line))) 32)))
|
||||
"\n"))
|
||||
'face 'doom-dashboard-banner)))
|
||||
|
||||
(use-package! elfeed
|
||||
:config
|
||||
(setq elfeed-feeds
|
||||
'("https://www.giessen.de/media/rss/Presse.xml"
|
||||
"https://adactio.com/journal/rss"
|
||||
"https://andregarzia.com/feeds/all.atom.xml"
|
||||
"https://ar.al/index.xml"
|
||||
"https://archlinux.org/feeds/news/"
|
||||
"https://ashfurrow.com//feed.xml"
|
||||
"https://bachrauf.org/feed/"
|
||||
"https://beko.famkos.net/feed/"
|
||||
"https://blog.elementary.io/feed.xml"
|
||||
"https://blog.gls.de/feed/"
|
||||
"https://dasklima.podigee.io/feed/mp3"
|
||||
"https://fed.brid.gy/web/inhji.de/feed?format=rss"
|
||||
"https://forgefriends.org/index.xml"
|
||||
"https://forgejo.org/rss.xml"
|
||||
"https://giessen-direkt.de/giessen/de/flexPrjList/54365/feed"
|
||||
"https://github.com/InfiniTimeOrg/InfiniTime/releases.atom"
|
||||
"https://github.com/actualbudget/actual/releases.atom"
|
||||
"https://github.com/ceciliamay/obsidianmd-theme-primary/releases.atom"
|
||||
"https://github.com/dani-garcia/vaultwarden/releases.atom"
|
||||
"https://github.com/extrawurst/gitui/releases.atom"
|
||||
"https://github.com/microg/GmsCore/releases.atom"
|
||||
"https://github.com/noatpad/obsidian-banners/releases.atom"
|
||||
"https://github.com/superseriousbusiness/gotosocial/releases.atom"
|
||||
"https://grimgrains.com/links/rss.xml"
|
||||
"https://jlelse.blog/.rss"
|
||||
"https://katapult-magazin.de/feed/rss"
|
||||
"https://katja-diehl.de/feed/"
|
||||
"https://kevquirk.com/feed"
|
||||
"https://liamcooke.com/feed.xml"
|
||||
"https://maudb.gitlab.io/dok/rss.xml"
|
||||
"https://miniflux.app/feed.xml"
|
||||
"https://mntre.com/reform_md.atom"
|
||||
"https://nesslabs.com/feed"
|
||||
"https://newsfeed.zeit.de/serie/die-kaenguru-comics"
|
||||
"https://nicolevanderhoeven.com/index.xml"
|
||||
"https://noyb.eu/en/rss"
|
||||
"https://obsidian.md/feed.xml"
|
||||
"https://ohhelloana.blog/feed.xml"
|
||||
"https://pluralistic.net/feed/"
|
||||
"https://shkspr.mobi/blog/feed/"
|
||||
"https://smallstar.space/feed/"
|
||||
"https://snikket.org/blog/index.xml"
|
||||
"https://social.prepedia.org/@FediNINA_Giessen.rss"
|
||||
"https://solar.lowtechmagazine.com/posts/index.xml"
|
||||
"https://tarnkappe.info/feed"
|
||||
"https://theoatmeal.com/feed/rss"
|
||||
"https://victoria.dev/atom.xml"
|
||||
"https://warandpeas.com/feed/"
|
||||
"https://warnung.bund.de/api31/mowas/rss/065310000000.rss"
|
||||
"https://webcomicname.com/rss"
|
||||
"https://webdevlaw.uk/feed/"
|
||||
"https://www.commitstrip.com/en/feed/"
|
||||
"https://www.drugsandwires.fail/feed/"
|
||||
"https://www.kuketz-blog.de/category/artikel/feed/"
|
||||
"https://www.kuketz-blog.de/category/microblog/feed/"
|
||||
"https://www.mein-nepal.de/feed/"
|
||||
"https://www.oglaf.com/feeds/rss/"
|
||||
"https://www.piratenpartei-hessen.de/feed/"
|
||||
"https://www.schoenescheisse.de/feed/"
|
||||
"https://www.smbc-comics.com/comic/rss"
|
||||
"https://www.tomorrow.one/de-DE/feed.xml"
|
||||
"https://www.volksverpetzer.de/feed/"
|
||||
"https://www.wetell.de/feed/"
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UC0e3QhIYukixgh5VVpKHH9Q" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCCJ-NJtqLQRxuaxHZA9q6zg" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UClZbO3wehSIsPUKLx_X5caw" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCtUbO6rBht0daVIOGML3c8w" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCyNtlmLB73-7gtlBz00XOQQ" youtube)
|
||||
("https://www.youtube.com/feeds/videos.xml?channel_id=UCzg5UMJ62uoKHTkq5bgkp5g" youtube)
|
||||
"https://zerforschung.org/index.xml"
|
||||
)))
|
||||
#+end_src
|
||||
|
|
|
@ -10,15 +10,16 @@
|
|||
;; To disable an installed package:
|
||||
;; (package! some-package :disable t)
|
||||
|
||||
(package! org-auto-tangle)
|
||||
(package! org-habit-stats)
|
||||
(package! org-super-agenda)
|
||||
(package! org-drill)
|
||||
(package! org-noter)
|
||||
(package! catppuccin-theme)
|
||||
(package! drag-stuff)
|
||||
(package! heaven-and-hell)
|
||||
(package! nov)
|
||||
(package! olivetti)
|
||||
(package! drag-stuff)
|
||||
(package! org-auto-tangle)
|
||||
(package! org-drill)
|
||||
(package! org-habit-stats)
|
||||
(package! org-noter)
|
||||
(package! org-super-agenda)
|
||||
|
||||
;; To install a package directly from a remote git repo, you must specify a
|
||||
;; `:recipe'. You'll find documentation on what `:recipe' accepts here:
|
||||
|
|
Loading…
Reference in New Issue