Compare commits
4 Commits
102896f180
...
bb48ac228a
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bb48ac228a | ||
|
|
8bca64b5c6 | ||
|
|
cb1304712b | ||
|
|
12cb8a78d7 |
@@ -71,6 +71,10 @@
|
|||||||
;; Read feeds
|
;; Read feeds
|
||||||
(use-package elfeed)
|
(use-package elfeed)
|
||||||
|
|
||||||
|
;; The following packages are base packages to enable a more featureful programming and,
|
||||||
|
;; more generally, text editing environment. Things like, better shell/terminals, git,
|
||||||
|
;; text folding, etc.
|
||||||
|
|
||||||
;; Eshell configuration
|
;; Eshell configuration
|
||||||
;; We need colors in eshell
|
;; We need colors in eshell
|
||||||
(use-package xterm-color)
|
(use-package xterm-color)
|
||||||
@@ -115,12 +119,58 @@
|
|||||||
(use-package company
|
(use-package company
|
||||||
:hook (after-init . global-company-mode))
|
:hook (after-init . global-company-mode))
|
||||||
|
|
||||||
(use-package tomlparse)
|
|
||||||
|
|
||||||
(use-package treemacs
|
(use-package treemacs
|
||||||
:demand t
|
:demand t
|
||||||
:bind ("<f3>" . treemacs))
|
:bind ("<f3>" . treemacs))
|
||||||
|
|
||||||
|
;; Text folding front end
|
||||||
|
(use-package kirigami
|
||||||
|
:custom
|
||||||
|
;; Add Kirigami to the menu bar and context menu (`context-menu-mode').
|
||||||
|
(kirigami-show-menu-bar t)
|
||||||
|
(kirigami-show-context-menu t)
|
||||||
|
:bind (("C-c z o" . kirigami-open-fold) ; Open fold at point
|
||||||
|
("C-c z O" . kirigami-open-fold-rec) ; Open fold recursively
|
||||||
|
("C-c z r" . kirigami-open-folds) ; Open all folds
|
||||||
|
("C-c z c" . kirigami-close-fold) ; Close fold at point
|
||||||
|
("C-c z m" . kirigami-close-folds) ; Close all folds
|
||||||
|
("C-c z a" . kirigami-toggle-fold)) ; Toggle fold at point
|
||||||
|
:init
|
||||||
|
(kirigami-global-mode 1))
|
||||||
|
|
||||||
|
;; Text folding back ends
|
||||||
|
(use-package treesit-fold
|
||||||
|
:defer t
|
||||||
|
:hook (python-ts-mode . treesit-fold-mode))
|
||||||
|
|
||||||
|
(use-package eglot
|
||||||
|
:straight (:type built-in)
|
||||||
|
:defer t
|
||||||
|
:hook ((python-base-mode . eglot-ensure)))
|
||||||
|
|
||||||
|
(use-package dape)
|
||||||
|
|
||||||
|
;; For a more ergonomic Emacs and `dape' experience
|
||||||
|
(use-package repeat
|
||||||
|
:custom
|
||||||
|
(repeat-mode +1))
|
||||||
|
|
||||||
|
;; Left and right side windows occupy full frame height
|
||||||
|
(use-package emacs
|
||||||
|
:custom
|
||||||
|
(window-sides-vertical t))
|
||||||
|
|
||||||
|
;; SPECIFIC PROGRAMMING LANGUAGE PACKAGES AND CONFIGURATION
|
||||||
|
|
||||||
|
;; TODO search if there already is a less hacky way to do this.
|
||||||
|
;; make emacs to call python-ts-mode whenever it would python-mode
|
||||||
|
(setq major-mode-remap-alist
|
||||||
|
'((python-mode . python-ts-mode)))
|
||||||
|
|
||||||
|
;; TODO do I really need this, what was the use case for including this package? It can
|
||||||
|
;; also be better configured as by its README on its git repository.
|
||||||
|
(use-package tomlparse)
|
||||||
|
|
||||||
;; Javascript and React
|
;; Javascript and React
|
||||||
(use-package rjsx-mode
|
(use-package rjsx-mode
|
||||||
:config
|
:config
|
||||||
@@ -132,12 +182,13 @@
|
|||||||
(slime-setup '(slime-fancy slime-quicklisp slime-asdf slime-mrepl))
|
(slime-setup '(slime-fancy slime-quicklisp slime-asdf slime-mrepl))
|
||||||
(setq inferior-lisp-program "sbcl"))
|
(setq inferior-lisp-program "sbcl"))
|
||||||
|
|
||||||
(use-package paredit
|
|
||||||
:hook ((lisp-mode emacs-lisp-mode) . paredit-mode))
|
|
||||||
|
|
||||||
;; Clojure
|
;; Clojure
|
||||||
(use-package cider)
|
(use-package cider)
|
||||||
|
|
||||||
|
(use-package paredit
|
||||||
|
:hook ((lisp-mode emacs-lisp-mode clojure-mode) . paredit-mode))
|
||||||
|
|
||||||
|
|
||||||
;; Rust
|
;; Rust
|
||||||
(use-package rust-mode
|
(use-package rust-mode
|
||||||
:hook ((rust-mode . cargo-minor-mode)
|
:hook ((rust-mode . cargo-minor-mode)
|
||||||
@@ -156,9 +207,8 @@
|
|||||||
(use-package envrc
|
(use-package envrc
|
||||||
:hook (after-init . envrc-global-mode))
|
:hook (after-init . envrc-global-mode))
|
||||||
|
|
||||||
(use-package python-black
|
;; Python
|
||||||
:after python
|
(use-package python-black)
|
||||||
:hook (python-mode . python-black-on-save-mode-enable-dwim))
|
|
||||||
|
|
||||||
(use-package ruff-format)
|
(use-package ruff-format)
|
||||||
|
|
||||||
@@ -180,23 +230,6 @@
|
|||||||
;; View logs
|
;; View logs
|
||||||
(use-package log4j-mode)
|
(use-package log4j-mode)
|
||||||
|
|
||||||
(use-package eglot
|
|
||||||
:straight (:type built-in)
|
|
||||||
:defer t
|
|
||||||
:hook ((python-base-mode . eglot-ensure)))
|
|
||||||
|
|
||||||
(use-package dape)
|
|
||||||
|
|
||||||
;; For a more ergonomic Emacs and `dape' experience
|
|
||||||
(use-package repeat
|
|
||||||
:custom
|
|
||||||
(repeat-mode +1))
|
|
||||||
|
|
||||||
;; Left and right side windows occupy full frame height
|
|
||||||
(use-package emacs
|
|
||||||
:custom
|
|
||||||
(window-sides-vertical t))
|
|
||||||
|
|
||||||
;; TRAMP
|
;; TRAMP
|
||||||
(load "~/.emacs.d/elisp/tramp-setup.el")
|
(load "~/.emacs.d/elisp/tramp-setup.el")
|
||||||
(load "~/.emacs.d/elisp/outline-keymap.el")
|
(load "~/.emacs.d/elisp/outline-keymap.el")
|
||||||
|
|||||||
Reference in New Issue
Block a user