aboutsummaryrefslogtreecommitdiff
path: root/Emacs/.config
diff options
context:
space:
mode:
authorAryadev Chavali <aryadev@aryadevchavali.com>2023-03-26 19:44:03 +0100
committerAryadev Chavali <aryadev@aryadevchavali.com>2023-03-26 19:44:03 +0100
commitdd71577a7f52f017927f7ad7aa4f080518f2f520 (patch)
treec7f928a16e963fc6dfd71ccaa2e19ba2985116eb /Emacs/.config
parent9bc1f8a2762e7aa83c34ee38517d1507749dd9c4 (diff)
downloaddotfiles-dd71577a7f52f017927f7ad7aa4f080518f2f520.tar.gz
dotfiles-dd71577a7f52f017927f7ad7aa4f080518f2f520.tar.bz2
dotfiles-dd71577a7f52f017927f7ad7aa4f080518f2f520.zip
(Emacs)+aggressive indent, ~moved around compilation
Diffstat (limited to 'Emacs/.config')
-rw-r--r--Emacs/.config/emacs/config.org48
1 files changed, 30 insertions, 18 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org
index a92d22d..efa9e21 100644
--- a/Emacs/.config/emacs/config.org
+++ b/Emacs/.config/emacs/config.org
@@ -2078,6 +2078,24 @@ Of course Emacs has a cool screensaver software.
:config
(zone-when-idle 15))
#+end_src
+** Compilation
+Colourising the compilation buffer so ANSI colour codes get computed.
+#+begin_src emacs-lisp
+(use-package compile
+ :defer t
+ :straight nil
+ :display
+ ("\\*compilation\\*"
+ (display-buffer-at-bottom)
+ (window-height . 0.25))
+ :config
+ (defun +compile/colourise ()
+ "Colourise the emacs compilation buffer."
+ (interactive)
+ (let ((inhibit-read-only t))
+ (ansi-color-apply-on-region (point-min) (point-max))))
+ (add-hook 'compilation-filter-hook #'+compile/colourise))
+#+end_src
* Major modes, programming and text
Setups for common major modes and languages.
** Text Configuration
@@ -2244,24 +2262,6 @@ However, if necessary later, define a function that may activate tabs locally.
(interactive)
(setq-local indent-tabs-mode t))
#+end_src
-*** Compilation
-Colourising the compilation buffer so ANSI colour codes get computed.
-#+begin_src emacs-lisp
-(use-package compile
- :defer t
- :straight nil
- :display
- ("\\*compilation\\*"
- (display-buffer-at-bottom)
- (window-height . 0.25))
- :config
- (defun +compile/colourise ()
- "Colourise the emacs compilation buffer."
- (interactive)
- (let ((inhibit-read-only t))
- (ansi-color-apply-on-region (point-min) (point-max))))
- (add-hook 'compilation-filter-hook #'+compile/colourise))
-#+end_src
*** Highlight todo items
TODO items are highlighted in org buffers, but not necessarily in
every buffer. This minor mode highlights all TODO like items via a
@@ -2286,6 +2286,18 @@ Turn on ~hs-minor-mode~ for all prog-mode.
:straight nil
:hook (prog-mode-hook . hs-minor-mode))
#+end_src
+*** Aggressive indenting
+Essentially my dream editing experience, when I type stuff in try and
+indent it for me on the fly. Just checkout the [[https://github.com/Malabarba/aggressive-indent-mode][page]], any way I
+describe it won't do it justice.
+
+#+begin_src emacs-lisp
+(use-package aggressive-indent
+ :straight t
+ :demand t
+ :hook
+ (prog-mode-hook . aggressive-indent-mode))
+#+end_src
** PDF
PDFs are a format for (somewhat) immutable text and reports with great
formatting options. Though Emacs isn't my favourite application for