diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 02:33:25 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2024-06-11 02:33:25 +0100 |
commit | e4d240e20204364cdd66f42c4b92f5e973c1599b (patch) | |
tree | 1c9e0145355be70b4a5ae4c0740d9db35406e7e6 | |
parent | 51cd0ee896dbcab7736c463f10333d123ce1a6fb (diff) | |
download | dotfiles-e4d240e20204364cdd66f42c4b92f5e973c1599b.tar.gz dotfiles-e4d240e20204364cdd66f42c4b92f5e973c1599b.tar.bz2 dotfiles-e4d240e20204364cdd66f42c4b92f5e973c1599b.zip |
(Emacs/config)-:pretty sections for eshell,java,c#,c/c++
Honestly not that useful for eshell (made it annoying to read text),
whereas in c/c++ it made looking at certain formatted code really
annoying.
Java and C# aren't used anyway.
In most cases, when reading code in a non terse language like C/C++,
C# or Java I'd rather just /see/ the code. In something like Lisp or
Python the symbols just make it that much easier to read code.
-rw-r--r-- | Emacs/.config/emacs/config.org | 68 |
1 files changed, 1 insertions, 67 deletions
diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index e7955c6..db433fa 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1990,12 +1990,6 @@ Pretty symbols and a display record. #+begin_src emacs-lisp (use-package eshell :defer t - :pretty - (eshell-mode-hook - ("lambda" . "λ") - ("numberp" . "ℤ") - ("t" . "⊨") - ("nil" . "Ø")) :display ("\\*e?shell\\*" ; for general shells as well (display-buffer-at-bottom) @@ -3013,10 +3007,6 @@ Hooks, prettify-symbols and records for auto insertion. :display ("\\*Org Src.*" (display-buffer-same-window)) - :pretty - (org-mode-hook - ("#+begin_src" . "≫") - ("#+end_src" . "≪")) :auto-insert (("\\.org\\'" . "Org skeleton") "Enter title: " @@ -3519,36 +3509,6 @@ Tons of stuff, namely: :states '(normal motion visual) "(" #'c-beginning-of-statement ")" #'c-end-of-statement) - :pretty - (c-mode-hook - ("puts" . "φ") - ("fputs" . "ϕ") - ("printf" . "ω") - ("fprintf" . "Ω") - ("NULL" . "Ø") - ("true" . "⊨") - ("false" . "⊭") - ("!" . "¬") - ("&&" . "∧") - ("||" . "∨") - ("for" . "∀") - ("return" . "⟼")) - (c++-mode-hook - ("nullptr" . "Ø") - ("string" . "𝕊") - ("vector" . "ℓ") - ("puts" . "φ") - ("fputs" . "ϕ") - ("printf" . "ω") - ("fprintf" . "Ω") - ("NULL" . "Ø") - ("true" . "⊨") - ("false" . "⊭") - ("!" . "¬") - ("&&" . "∧") - ("||" . "∨") - ("for" . "∀") - ("return" . "⟼")) :init (setq-default c-basic-offset 2) (setq-default c-auto-newline nil) @@ -3735,21 +3695,7 @@ Haven't used C# in a while, but Emacs is alright for it with omnisharp. #+begin_src emacs-lisp (use-package csharp-mode - :defer t - :pretty - (csharp-mode-hook - ("null" . "∅") - ("string" . "𝕊") - ("List" . "ℓ") - ("WriteLine" . "φ") - ("Write" . "ω") - ("true" . "⊨") - ("false" . "⊭") - ("!" . "¬") - ("&&" . "∧") - ("||" . "∨") - ("for" . "∀") - ("return" . "⟼"))) + :defer t) #+end_src ** WAIT Java :PROPERTIES: @@ -3761,18 +3707,6 @@ features to be fair. #+begin_src emacs-lisp (use-package ob-java :defer t - :pretty - (java-mode-hook - ("println" . "φ") - ("printf" . "ω") - ("null" . "Ø") - ("true" . "⊨") - ("false" . "⊭") - ("!" . "¬") - ("&&" . "∧") - ("||" . "∨") - ("for" . "∀") - ("return" . "⟼")) :config (with-eval-after-load "cc-mode" (c-add-style |