chore: update doom emacs config

This commit is contained in:
Alexandre Cavalheiro S. Tiago da Silva 2022-06-20 11:22:53 -03:00
parent 0e38c09df9
commit 6efa74ea62
No known key found for this signature in database
GPG key ID: 9DB0EDFAA7025A2A
4 changed files with 58 additions and 14 deletions

View file

@ -21,20 +21,20 @@
;; (setq doom-font (font-spec :family "monospace" :size 12 :weight 'semi-light)
;; doom-variable-pitch-font (font-spec :family "sans" :size 13))
(setq doom-font (font-spec :family "FantasqueSansMono NF" :size 13 :weight 'regular))
(setq doom-font (font-spec :family "FantasqueSansMono NF" :size 13))
;;(setq doom-font (font-spec :family "Hasklig" :size 12 :weight 'regular))
(setq doom-unicode-font doom-font) ; extend glyphs
;;(setq doom-unicode-font doom-font) ; extend glyphs
;; 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-dracula)
(setq doom-theme 'doom-gruvbox)
;; 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 "~/Documents/notes"
org-agenda-files (doom-files-in `(,org-directory, "~/Documents/zettlekasten/daily") :type 'files :match "\\.org\\'"))
org-agenda-files (doom-files-in `(,org-directory, "~/Documents/zettelkasten") :type 'files :match "\\.org\\'"))
;; This determines the style of line numbers in effect. If set to `nil', line
;; numbers are disabled. For relative line numbers, set this to `relative'.
@ -110,13 +110,18 @@
;; Configure orm-roam
(setq org-roam-v2-ack t) ; flag that it has been successfully migrated
(setq org-roam-directory "~/Documents/zettlekasten")
(setq org-roam-directory "~/Documents/zettelkasten")
(map! (:leader :desc "Opens a daily note through the calendar" :n "nrdF" #'org-roam-dailies-find-date))
(setq org-roam-dailies-capture-templates
'(("d" "default" entry
"* %?"
:target (file+head "%<%Y-%m-%d>.org"
"#+title: %<%Y-%m-%d>\n#+filetags: :daily:\n\n* Morning Journal\n** What are you grateful for?\n** What do you want today's highlight to be?\n** What's on your mind?\n* Tasks\n* Input\n* Output\n* Evening Reflection\n** How are you feeling today?\n** What could you have done better?\n** Amazing things that happened\n** What did you learn today?"))))
(use-package! websocket
:after org-roam)
(use-package! org-roam-ui
:after org-roam
: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))
;; Function to add directories done by hlissner (Henrik) https://github.com/hlissner/doom-emacs/issues/5305#issuecomment-923996238
(defun doom/add-directory-as-project (dir)
@ -138,3 +143,19 @@ mask DIR)."
;; Setup elixir-ls
(setq lsp-clients-elixir-server-executable '("~/.local/share/elixir-ls/release/language_server.sh"))
;; Make sure hl-line-mode doesn't overrides rainbow-mode
(add-hook! 'vue-mode-hook #'lsp)
;; Configure elfeed
(setq rmh-elfeed-org-files '("/home/wizardlink/Documents/zettelkasten/20220610215118-elfeed.org"))
;; Configure doom-themes with treemacs
(with-eval-after-load 'doom-themes
(doom-themes-treemacs-config))
;; Configure doom-gruvbox
(setq
doom-gruvbox-brighter-comments nil
doom-gruvbox-dark-variant "medium"
doom-gruvbox-padded-modeline nil)

View file

@ -38,7 +38,7 @@
ligatures ; ligatures and symbols to make your code pretty again
;;minimap ; show a map of the code on the side
modeline ; snazzy, Atom-inspired modeline, plus API
;;nav-flash ; blink cursor line after big motions
nav-flash ; blink cursor line after big motions
;;neotree ; a project drawer, like NERDTree for vim
ophints ; highlight the region an operation acts on
(popup ; tame sudden yet inevitable temporary windows
@ -104,7 +104,7 @@
;;pdf ; pdf enhancements
;;prodigy ; FIXME managing external services & code builders
rgb ; creating color strings
;;taskrunner ; taskrunner for all your projects
taskrunner ; taskrunner for all your projects
;;terraform ; infrastructure as code
;;tmux ; an API for interacting with tmux
;;upload ; map local to remote projects via ssh/ftp
@ -192,7 +192,7 @@
;;emms
;;everywhere ; *leave* Emacs!? You must be joking
;;irc ; how neckbeards socialize
;;(rss +org) ; emacs as an RSS reader
(rss +org) ; emacs as an RSS reader
;;twitter ; twitter client https://twitter.com/vnought
:config

View file

@ -66,4 +66,5 @@
(package! graphviz-dot-mode)
;; Install org-roam
(package! org-roam)
(unpin! org-roam)
(package! org-roam-ui)

View file

@ -0,0 +1,22 @@
# -*- mode: snippet -*-
# name: daily
# key: daily
# --
#+filetags: :daily:$1
* Morning Journal
** What are you grateful for?
$2
** What do you want the today's highlight to be?
$3
** What's on your mind?
$4
* Tasks
$5
* Input
* Output
* Evening Reflection
** How are you feeling today?
** What could you have done better?
** Amazing things that happened
** What did you learn today?