Emacs and inputs updated

- Added org-roam in Emacs
- Flake inputs updated
- Other little modifications
This commit is contained in:
Andrea Ciceri 2021-10-14 01:26:52 +02:00
parent 3f39ace857
commit 317e50ef9f
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
13 changed files with 167 additions and 119 deletions

View file

@ -9,8 +9,10 @@
)
(use-package fira-code-mode
:custom (fira-code-mode-disabled-ligatures '(":")) ;; List of ligatures to turn off
:config (global-fira-code-mode))
:custom (fira-code-mode-disabled-ligatures '()) ;; List of ligatures to turn off
:config
(fira-code-mode-set-font)
(global-fira-code-mode))
(defalias 'yes-or-no-p 'y-or-n-p)

View file

@ -1,10 +1,28 @@
(use-package org
:init
(setq fill-column 80)
(setq fill-column 80)
(require 'org-protocol)
:hook
((org-mode . refill-mode)
(org-mode . (lambda () (org-superstar-mode 1)))
(org-mode . prettify-symbols-mode)))
(use-package org-roam
:init
(setq org-roam-v2-ack t)
:custom
(org-roam-directory (file-truename "~/roam/"))
(org-roam-graph-executable "dot")
: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
(org-roam-db-autosync-mode)
;; If using org-roam-protocol
(require 'org-roam-protocol))
(provide 'config-org)

View file

@ -1,6 +1,6 @@
(use-package lsp-python-ms
:ensure t
:hook (python-mode . (lambda ()
(setq indent-tabs-mode nil) ; disable tabs
(require 'lsp-python-ms)
(lsp)))
:init

View file

@ -9,6 +9,9 @@
(defun nixos-rebuild-test ()
(interactive)
;; async-shell command should be sufficient, to check why it isn't
(sudo-utils-shell-command "nixos-rebuild test"))
(global-set-key [f6] 'nixos-rebuild-test)
(provide 'nix)