dotfiles

Personal dotfiles.
git clone git://vcs.sapka.me/dotfiles
Log | Files | Refs | Submodules

commit ee6b58f1205eb51aaf0555b9b9924d795ae5e95a
parent c8da36906474f5f6f82f3720b52308eb3d84c222
Author: Michał M. Sapka <michal@sapka.me>
Date:   Fri, 14 Jul 2023 14:08:40 +0200

feat: remove ASDF

Diffstat:
Memacs/.emacs.d/config.org | 134++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------
1 file changed, 89 insertions(+), 45 deletions(-)

diff --git a/emacs/.emacs.d/config.org b/emacs/.emacs.d/config.org @@ -1,4 +1,4 @@ -#+TITLE: Michał Sapka's Emacs Config +/#+TITLE: Michał Sapka's Emacs Config #+AUTHOR: Michał Sapka #+STARTUP: showall indent @@ -9,11 +9,10 @@ - [[#encoding][Encoding]] - [[#set-look-and-behavior][Set look and behavior]] - [[#allow-for-diminished-mode][Allow for diminished mode]] - - [[#modus-themes-configuration][Modus themes configuration]] + - [[#modus-themes-configuration][Modus themes configuration]] - [[#auto-complete-user-input][Auto-complete user input]] - [[#marginalia][Marginalia]] - [[#savehist][Savehist]] - - [[#asdf][ASDF]] - [[#tree-sitter][Tree sitter]] - [[#which-key][Which Key]] - [[#tramp][Tramp]] @@ -56,6 +55,7 @@ - [[#literate-calc-mode][Literate calc mode]] - [[#auto-commit][auto commit]] - [[#jira][jira]] + - [[#org-roam][Org-roam]] - [[#bibtex][Bibtex]] * General configuration @@ -106,10 +106,6 @@ Recently, I have migrated to Elpaca. (load "./elpaca-autoloads"))) (add-hook 'after-init-hook #'elpaca-process-queues) (elpaca `(,@elpaca-order)) - - - - #+end_src #+begin_src emacs-lisp @@ -161,12 +157,13 @@ Show line numbers in the gutter ** Allow for diminished mode #+begin_src emacs-lisp - (use-package diminish) + (use-package diminish + :elpaca t) #+end_src #+RESULTS: -*** Modus themes configuration +** Modus themes configuration I use Modus themes from =Prot= with a few personalizations. Prot's work is amazing and I have yet to see such personalized theme inhere. ref: https://protesilaos.com/emacs/modus-themes @@ -251,14 +248,6 @@ Marginalia adds extra information to the auto-complete mini-buffer. Looks nice, #+RESULTS: -** ASDF - -I use ASDF as my unified version manager. It doesn't play nicely with Emacs out of the box - -#+BEGIN_SRC emacs-lisp - (add-to-list 'exec-path "~/.asdf/shims") -#+END_SRC - ** Tree sitter I don't get Tree Sitter but it makes syntax coloring more accurate. @@ -287,9 +276,14 @@ Essential package. An automatic cheat sheet for keyboard bindings. (which-key-setup-side-window-bottom) (set-face-attribute 'which-key-local-map-description-face nil :weight 'bold) - :elpaca t) + :diminish 'which-key-mode + :elpaca t) + + #+END_SRC +#+RESULTS: + ** Tramp #+begin_src emacs-lisp @@ -338,16 +332,18 @@ Auto enable flyspell #+begin_src emacs-lisp (use-package flyspell :elpaca nil - :init) - - (add-hook 'message-mode-hook 'flyspell-mode) - - (add-hook 'prog-mode-hook 'flyspell-prog-mode) + :init + :config + (add-hook 'message-mode-hook 'flyspell-mode) + (add-hook 'prog-mode-hook 'flyspell-prog-mode) + :diminish 'flyspell-mode + :diminish 'flyspell-prog-mode + ) #+end_src #+RESULTS: -| flyspell-prog-mode | +: t * Programing @@ -422,6 +418,21 @@ Show changed lines in the gutter #+RESULTS: : t +#+begin_src emacs-lisp + (use-package robe + :elpaca t + :config + (add-hook 'ruby-mode-hook 'robe-mode) + (add-hook 'ruby-ts-mode-hook 'robe-mode)) +#+end_src + +#+begin_src emacs-lisp + (use-package rbenv + :config + (add-hook 'ruby-mode-hook 'rbenv-mode)) +#+end_src +#+RESULTS: + *** Rspec #+begin_src emacs-lisp @@ -447,31 +458,40 @@ Show changed lines in the gutter ** Flycheck #+BEGIN_SRC emacs-lisp - (use-package flycheck - :elpaca t - :init (global-flycheck-mode)) - - (setq flycheck-command-wrapper-function - (lambda (command) - (append '("bundle" "exec") command))) + (use-package flycheck + :elpaca t + :init (global-flycheck-mode) + :config + (setq flycheck-command-wrapper-function + (lambda (command) + (append '("bundle" "exec") command))) + + :diminish 'flycheck-mode + ) #+END_SRC +#+RESULTS: + ** Company mode #+BEGIN_SRC emacs-lisp - (use-package company - :after lsp-mode - :hook (prog-mode . company-mode) - ;; :bind (:map company-active-map - ;; ("<tab>" . company-complete-selection)) - ;; (:map lsp-mode-map - ;; ("<tab>" . company-indent-or-complete-common)) - :custom - (company-minimum-prefix-length 1) - (company-idle-delay 0.0) - (company-global-modes '(not org-mode))) + (use-package company + :after lsp-mode + :hook (prog-mode . company-mode) + ;; :bind (:map company-active-map + ;; ("<tab>" . company-complete-selection)) + ;; (:map lsp-mode-map + ;; ("<tab>" . company-indent-or-complete-common)) + :custom + (company-minimum-prefix-length 1) + (company-idle-delay 0.0) + (company-global-modes '(not org-mode)) + :diminish 'company-mode) #+END_SRC +#+RESULTS: +| | + ** Indentation Yeah, force indentation @@ -562,14 +582,13 @@ REF: https://gitlab.com/protesilaos/dotfiles/-/blob/master/emacs/.emacs.d/prot-e :elpaca t :config (notmuch-indicator-mode 1) - (setq notmuch-indicator-refresh-count (* 60 3) + (setq notmuch-indicator-refresh-count 60 notmuch-indicator-hide-empty-counters t notmuch-indicator-args '((:terms "tag:gh-pr-todo" :label "pr: ") (:terms "tag:unread" :label "unread:") )) - (diminish 'notmuch-indicator-mode) - ) + :diminish 'notmuch-indicator-mode) #+end_src #+RESULTS: @@ -591,6 +610,7 @@ You can find me at https://emacs.ch/@ms ** RSS + *** Elfeed #+BEGIN_SRC emacs-lisp @@ -749,6 +769,8 @@ Enable flyspell (add-hook 'org-mode-hook 'flyspell-mode) #+end_src +#+RESULTS: + ** Org-agenda Weeks starts on Monday @@ -825,6 +847,28 @@ Typing code blocks is tedious, so let's make it easier. Typing =<el<TAB>= will c #+RESULTS: +** Org-roam + +#+begin_src emacs-lisp + (use-package org-roam + :custom + (setq org-roam-directory (file-truename "~/org-roam")) + :bind (("C-c n l" . org-roam-buffer-toggle) + ("C-c n f" . org-roam-node-find) + ("C-c n g" . org-roam-graph) + ("C-c n i" . org-roam-node-insert) + ("C-c n c" . org-roam-capture) + ;; Dailies + ("C-c n j" . org-roam-dailies-capture-today)) + :config + ;; If you're using a vertical completion framework, you might want a more informative completion interface + (setq org-roam-node-display-template (concat "${title:*} " (propertize "${tags:10}" 'face 'org-tag))) + (org-roam-db-autosync-mode)) +#+end_src + +#+RESULTS: +: t + * Bibtex I'd love to keep bibliography in a manageable way. Grown ups seem to agree that bibtex is the standard and it has a nice emacs plugin