From 9e2aa4d2e92a1eb1c2da2fec6b76a6f5d47c277b Mon Sep 17 00:00:00 2001 From: Julian Mutter Date: Tue, 9 May 2023 12:10:13 +0200 Subject: [PATCH] emacs: include eshell, vterm and python notebook support --- emacs/doom/config.org | 21 ++++++++++++++++++++- emacs/doom/init.el | 8 ++++---- 2 files changed, 24 insertions(+), 5 deletions(-) diff --git a/emacs/doom/config.org b/emacs/doom/config.org index a5801bc..42cd967 100644 --- a/emacs/doom/config.org +++ b/emacs/doom/config.org @@ -59,6 +59,8 @@ ;; Open external terminal (map! :leader :desc "Open external terminal" "o t" (cmd! (call-process-shell-command "alacritty &" nil 0))) +;; Open external file manager +(map! :leader :desc "Open external file explorer" "o e" (cmd! (call-process-shell-command "thunar &" nil 0))) ;; Remap font scaling keybindings to make more sense (map! :desc "Increase font size" :n "C-+" #'text-scale-increase) @@ -82,6 +84,7 @@ (+format/buffer) (save-buffer)) +;; Do not ask before exiting emacs (setq confirm-kill-emacs nil) #+end_src @@ -187,6 +190,19 @@ headline, up to the next headline." ;; Fixes latexindent not finding perl libraries (setenv "PERL5LIB" "~/perl5/lib/perl5") ;; (setenv "GOPATH" "~/go") + + +;; Configuratoin proposed by jupyter notebook replacement tutorial +;; (org-babel-do-load-languages +;; 'org-babel-load-languages +;; '((emacs-lisp . t) ;; Other languages +;; (shell . t) +;; ;; Python & Jupyter +;; (python . t) +;; (ein . t) +;; (jupyter . t))) +;; (org-babel-jupyter-override-src-block "python") +;; (setq ob-async-no-async-languages-alist '("python" "jupyter-python")) #+end_src ** Spell Checking @@ -255,7 +271,7 @@ Return nil if on a link url, markup, html, or references." #+begin_src emacs-lisp :tangle yes ;; (setq lsp-dart-flutter-sdk-dir "~/snap/flutter/common/flutter") -(map! :mode dart-mode :leader "r" #'flutter-run-or-hot-reload) +;; (map! :mode dart-mode :leader "r" #'flutter-run-or-hot-reload) #+end_src ** Evil snipe #+begin_src emacs-lisp :tangle yes @@ -360,6 +376,9 @@ Return nil if on a link url, markup, html, or references." (defun fd-inventory-transfer() (interactive) ()) + +(with-eval-after-load 'lsp-rust + (require 'dap-cpptools)) #+end_src ** Inventory diff --git a/emacs/doom/init.el b/emacs/doom/init.el index a2c7b3f..6ee9b61 100644 --- a/emacs/doom/init.el +++ b/emacs/doom/init.el @@ -74,10 +74,10 @@ vc ; version-control and Emacs, sitting in a tree :term - ;;eshell ; the elisp shell that works everywhere + eshell ; the elisp shell that works everywhere ;;shell ; simple shell REPL for Emacs ;;term ; basic terminal emulator for Emacs - ;;vterm ; the best terminal emulation in Emacs + vterm ; the best terminal emulation in Emacs :checkers (syntax +childframe) ; tasing you for every semicolon you forget @@ -91,7 +91,7 @@ ;;direnv docker ;;editorconfig ; let someone else argue about tabs vs spaces - ;;ein ; tame Jupyter notebooks with emacs + ein ; tame Jupyter notebooks with emacs (eval +overlay) ; run code, run (also, repls) ;;gist ; interacting with github gists (lookup +docsets +dictionary) ; navigate your code and its documentation @@ -164,7 +164,7 @@ ;;rest ; Emacs as a REST client ;;rst ; ReST in peace ;;(ruby +rails) ; 1.step {|i| p "Ruby is #{i.even? ? 'love' : 'life'}"} - (rust +lsp) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() + (rust +lsp +tree-sitter) ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;(scheme +guile) ; a fully conniving family of lisps sh ; she sells {ba,z,fi}sh shells on the C xor