Add OCaml and update Doom Emacs
This commit is contained in:
parent
217ae1868b
commit
595191e0c7
4 changed files with 36 additions and 35 deletions
|
|
@ -5,9 +5,10 @@
|
|||
doom-big-font (font-spec :family "MesloLGS Nerd Font Mono" :size 24)
|
||||
treemacs-git-mode 'extended
|
||||
org-directory "~/Nextcloud/Org/"
|
||||
org-roam-directory "~/Nextcloud/OrgRoam/")
|
||||
org-roam-directory "~/Nextcloud/OrgRoam/"
|
||||
nerd-icons-font-names '("SymbolsNerdFontMono-Regular.ttf"))
|
||||
|
||||
; Workaround for "Error running timer: (void-function consult--ripgrep-builder)"
|
||||
; Workaround for "Error running timer: (void-function consult--ripgrep-builder)"
|
||||
(use-package! consult
|
||||
:config
|
||||
(defun consult--ripgrep-builder (&rest args) (apply (consult--ripgrep-make-builder) args)))
|
||||
|
|
@ -16,45 +17,38 @@
|
|||
:init
|
||||
(setq lsp-tailwindcss-add-on-mode t)
|
||||
(setq lsp-tailwindcss-major-modes '(rjsx-mode web-mode html-mode css-mode typescript-mode typescript-tsx-mode tsx-ts-mode ;; scala-mode
|
||||
))
|
||||
))
|
||||
(setq lsp-tailwindcss-experimental-class-regex [
|
||||
[ "cls\\(([^)]*)\\)" "\"([^']*)\"" ]
|
||||
[ "cls\\s*:=\\s*\\(?([^,^\\n^\\)]*)" "\"([^']*)\"" ]]))
|
||||
[ "cls\\(([^)]*)\\)" "\"([^']*)\"" ]
|
||||
[ "cls\\s*:=\\s*\\(?([^,^\\n^\\)]*)" "\"([^']*)\"" ]]))
|
||||
|
||||
(use-package! websocket
|
||||
:after org-roam)
|
||||
:after org-roam)
|
||||
|
||||
(use-package! org-roam-ui
|
||||
:after org-roam ;; or :after org
|
||||
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
|
||||
;; a hookable mode anymore, you're advised to pick something yourself
|
||||
;; if you don't care about startup time, use
|
||||
;; :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))
|
||||
:after org-roam ;; or :after org
|
||||
;; normally we'd recommend hooking orui after org-roam, but since org-roam does not have
|
||||
;; a hookable mode anymore, you're advised to pick something yourself
|
||||
;; if you don't care about startup time, use
|
||||
;; :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))
|
||||
|
||||
; Taken from https://github.com/yqrashawn/yqdotfiles/blob/master/.doom.d/read.el
|
||||
; Taken from https://github.com/yqrashawn/yqdotfiles/blob/master/.doom.d/read.el
|
||||
(setq! elfeed-use-curl t)
|
||||
(after! elfeed
|
||||
(elfeed-set-timeout 36000)
|
||||
(run-with-idle-timer 300 t #'elfeed-update)
|
||||
(setq!
|
||||
;; elfeed-protocol-newsblur-maxpages 200
|
||||
;; elfeed-search-filter "+unread +p1"
|
||||
;; elfeed-search-trailing-width 60
|
||||
rmh-elfeed-org-files `(,(concat org-directory "elfeed.org")))
|
||||
;; (add-hook! 'elfeed-search-mode-hook 'elfeed-update)
|
||||
elfeed-search-filter "+unread"
|
||||
rmh-elfeed-org-files `(,(concat org-directory "elfeed.org"))
|
||||
elfeed-protocol-feeds '(("owncloud+https://paultrial@cloud.banditlair.com"
|
||||
:password (shell-command-to-string "echo -n `secret-tool lookup elfeed nextcloud`"))))
|
||||
(add-hook! 'elfeed-search-mode-hook 'elfeed-update)
|
||||
(setq elfeed-protocol-enabled-protocols '(owncloud))
|
||||
(defadvice elfeed (after configure-elfeed-feeds activate)
|
||||
"Make elfeed-org autotags rules work with elfeed-protocol."
|
||||
(setq elfeed-protocol-tags elfeed-feeds)
|
||||
(setq elfeed-feeds (list
|
||||
(list "owncloud+https://paultrial@cloud.banditlair.com"
|
||||
:password (shell-command-to-string "echo -n `secret-tool lookup elfeed nextcloud`")
|
||||
:autotags elfeed-protocol-tags))))
|
||||
(elfeed-protocol-enable))
|
||||
|
||||
(use-package! elfeed-tube
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue