From e4d240e20204364cdd66f42c4b92f5e973c1599b Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 11 Jun 2024 02:33:25 +0100 Subject: (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. --- Emacs/.config/emacs/config.org | 68 +----------------------------------------- 1 file changed, 1 insertion(+), 67 deletions(-) (limited to 'Emacs') 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 -- cgit v1.2.3-13-gbd6f