Emacs haskell-mode, python3Full instead of python and org-roam util

This commit is contained in:
Andrea Ciceri 2021-10-27 01:21:39 +02:00
parent 9d9c65a835
commit aa7650e975
No known key found for this signature in database
GPG key ID: A1FC89532D1C5654
3 changed files with 18 additions and 3 deletions

View file

@ -15,6 +15,7 @@ emacsWithPackages (
evil evil
evil-collection evil-collection
fira-code-mode fira-code-mode
haskell-mode
helm helm
helm-ag helm-ag
helm-company helm-company
@ -48,6 +49,6 @@ emacsWithPackages (
minimap minimap
] ]
) ++ ( ) ++ (
with pkgs; [] with pkgs; [ ]
) )
) )

View file

@ -18,7 +18,7 @@
} else { }; } else { };
home.packages = with pkgs; [ home.packages = with pkgs; [
python python3Full
fd fd
ag ag
nixpkgs-fmt nixpkgs-fmt

View file

@ -16,9 +16,15 @@
("#+END_SRC" . "") ("#+END_SRC" . "")
("#+begin_src" . "λ") ("#+begin_src" . "λ")
("#+end_src" . "λ"))) ("#+end_src" . "λ")))
(org-babel-python-command "python3")
(org-src-preserve-indentation t)
:config
(org-babel-do-load-languages
'org-babel-load-languages
'((python . t)))
:hook :hook
((org-mode . auto-fill-mode) ;refill-mode breaks org headings ((org-mode . auto-fill-mode) ;refill-mode breaks org headings
(org-mode . org-num-mode) ;(org-mode . org-num-mode)
(org-mode . (lambda () (org-mode . (lambda ()
(dolist (face '((org-level-1 1.5) (dolist (face '((org-level-1 1.5)
(org-level-2 1.4) (org-level-2 1.4)
@ -65,10 +71,18 @@
("C-c n f" . org-roam-node-find) ("C-c n f" . org-roam-node-find)
("C-c n g" . org-roam-graph) ("C-c n g" . org-roam-graph)
("C-c n i" . org-roam-node-insert) ("C-c n i" . org-roam-node-insert)
("C-c n I" . org-roam-node-insert-immediate)
("C-c n c" . org-roam-capture) ("C-c n c" . org-roam-capture)
;; Dailies ;; Dailies
("C-c n j" . org-roam-dailies-capture-today)) ("C-c n j" . org-roam-dailies-capture-today))
:config :config
(defun org-roam-node-insert-immediate (arg &rest args)
(interactive "P")
(let ((args (cons arg args))
(org-roam-capture-templates (list (append (car org-roam-capture-templates)
'(:immediate-finish t)))))
(apply #'org-roam-node-insert args)))
(defun org-hide-properties () (defun org-hide-properties ()
"Hide all org-mode headline property drawers in buffer. Could be slow if it has a lot of overlays." "Hide all org-mode headline property drawers in buffer. Could be slow if it has a lot of overlays."
(interactive) (interactive)