Browse Source

[emacs] Fix org roam dailies and add emjois

Colin Powell 4 years ago
parent
commit
42f91766ff
4 changed files with 31 additions and 21 deletions
  1. 8 2
      emacs/.doom.d/config.el
  2. 14 5
      emacs/.doom.d/config.org
  3. 9 7
      emacs/.doom.d/init.el
  4. 0 7
      emacs/.doom.d/packages.el

+ 8 - 2
emacs/.doom.d/config.el

@@ -182,6 +182,14 @@
   (find-file +todo-file))
 
 (setq org-roam-directory "~/var/org/")
+(setq org-roam-dailies-directory "")
+
+(setq org-roam-dailies-capture-templates
+      '(("d" "default" entry
+         #'org-roam-capture--get-point
+         "* %?"
+         :file-name "%<%Y-%m-%d>"
+         :head "#+title: %<%Y-%m-%d>\n\n")))
 
 (setq org-fc-directories "~/var/org/")
 (require 'org-fc-hydra)
@@ -268,8 +276,6 @@
    "gs"    "magit-status"
    "gc"    "magit-commit"))
 
-;(add-hook 'python-mode-hook 'eglot-ensure)
-
 (after! lsp
   (setq lsp-file-watch-threshold nil))
 

+ 14 - 5
emacs/.doom.d/config.org

@@ -251,7 +251,19 @@ I add only two custom mappings to the default org mode maps, a shortcut to my In
 I am absolutely in love with [[https://org-roam.readthedocs.io/en/develop/][Org-roam]]. Everything about it makes taking notes easier. I just need to level up with Zettels and web publishing of my notes.
 #+BEGIN_SRC emacs-lisp
 (setq org-roam-directory "~/var/org/")
+(setq org-roam-dailies-directory "")
+
+(setq org-roam-dailies-capture-templates
+      '(("d" "default" entry
+         #'org-roam-capture--get-point
+         "* %?"
+         :file-name "%<%Y-%m-%d>"
+         :head "#+title: %<%Y-%m-%d>\n\n")))
 #+END_SRC
+
+#+RESULTS:
+: /
+
 ** Org-fc
 Trying a new space-repetition framework.
 #+BEGIN_SRC emacs-lisp
@@ -359,11 +371,8 @@ Handful of fun aliases to make working in Eshell almost like a /real/ shell :smi
    "gc"    "magit-commit"))
 #+END_SRC
 * Coding
-I once used LSP, but Emacs lsp-mode is flaky as hell. It works sometimes, but other times causes pyls to thrash the CPU. I don't need that, not when Eglot exists. This just makes sure Eglot runs in `python-mode`
-#+BEGIN_SRC emacs-lisp
-;(add-hook 'python-mode-hook 'eglot-ensure)
-#+END_SRC
-
+LSP doesn't like big projects and I can't blame it. This forces it to index huge
+projects without warning us everytime.
 #+begin_src emacs-lisp
 (after! lsp
   (setq lsp-file-watch-threshold nil))

+ 9 - 7
emacs/.doom.d/init.el

@@ -24,6 +24,7 @@
        ;;helm            ; the *other* search engine for love and life
        ;;ido             ; the other *other* search engine...
        (ivy              ; a search engine for love and life
+        +childframe
         +fuzzy
         +icons)
 
@@ -32,12 +33,13 @@
        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)  ;
        ;;fill-column       ; a `fill-column' indicator
        hl-todo           ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
        ;;hydra
        ;;indent-guides     ; highlighted indent columns
        ligatures         ;
-       ;minimap           ; show a map of the code on the side
+       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
        ;;neotree           ; a project drawer, like NERDTree for vim
@@ -83,7 +85,7 @@
 
        :checkers
        syntax              ; tasing you for every semicolon you forget
-       spell             ; tasing you for misspelling mispelling
+       (spell +flyspell +aspell)  ; tasing you for misspelling mispelling
        grammar           ; tasing grammar mistake every you make
 
        :tools
@@ -99,10 +101,10 @@
         +dictionary
         +docsets)
        lsp
-       magit             ; a git porcelain for Emacs
-       make              ; run make tasks from Emacs
-       pass              ; password manager for nerds
-       pdf               ; pdf enhancements
+       magit               ; a git porcelain for Emacs
+       make                ; run make tasks from Emacs
+       (pass +auth)        ; password manager for nerds
+       pdf                 ; pdf enhancements
        ;;prodigy           ; FIXME managing external services & code builders
        ;;rgb               ; creating color strings
        ;;taskrunner        ; taskrunner for all your projects
@@ -120,7 +122,7 @@
        ;;csharp            ; unity, .NET, and mono shenanigans
        data              ; config/data formats
        ;;(dart +flutter)   ; paint ui and not much else
-       ;;elixir            ; erlang done right
+       (elixir +lsp)       ; erlang done right
        ;;elm               ; care for a cup of TEA?
        emacs-lisp        ; drown in parentheses
        ;;erlang            ; an elegant language for a more civilized age

+ 0 - 7
emacs/.doom.d/packages.el

@@ -27,14 +27,8 @@
   :recipe(:host github
           :repo "alphapapa/matrix-client.el"))
 
-;(package! eglot)
-
 ;; python stuffs
 (package! blacken)
-;;(package! pylint)
-;;(package! py-isort)
-;;(package! importmagic)
-
 
 ;; org stuffs
 (package! ob-http)
@@ -67,4 +61,3 @@
 (package! srcery-theme)
 (package! kaolin-themes)
 (package! nyan-mode)
-(package! emojify)