add some comments to separate more clearly sections of the config file. Add folding capabilities. Move some definitions around
This commit is contained in:
@@ -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
|
||||||
@@ -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