(Emacs)~clear up

This commit is contained in:
2021-11-22 06:18:21 +00:00
parent 9587f92757
commit f46a8daad1

View File

@@ -8,11 +8,10 @@
My configuration for vanilla Emacs My configuration for vanilla Emacs
#+end_center #+end_center
#+latex: \clearpage #+latex: \clearpage
#+toc: headlines #+toc: headlines
* Initial * Initial
Let's setup some basics. Let's setup some basic functionality.
Firstly, set full name and mail address for use in a variety of Firstly, set full name and mail address for use in a variety of
applications, including encryption. applications, including encryption.
@@ -20,7 +19,7 @@ applications, including encryption.
(setq user-full-name "Aryadev Chavali" (setq user-full-name "Aryadev Chavali"
user-mail-address "aryadev@aryadevchavali.com") user-mail-address "aryadev@aryadevchavali.com")
#+end_src #+end_src
** Yes or no
Let's set all yes or no questions to single letter responses. Let's set all yes or no questions to single letter responses.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(fset 'yes-or-no-p 'y-or-n-p) (fset 'yes-or-no-p 'y-or-n-p)
@@ -120,7 +119,10 @@ Setting the path variable cos it can get annoying sometimes
(getenv "PATH")))) (getenv "PATH"))))
#+end_src #+end_src
* Custom Functions * Custom Functions
These are custom functions I have defined for various purposes. These are general custom functions I have defined for various
purposes. These encapsulate functionality that could apply to
multiple packages/situations, otherwise I would've defined it in the
place it's required.
** New line function ** New line function
Vim doesn't have a nice way of adding new lines before or after the Vim doesn't have a nice way of adding new lines before or after the
current line while staying in normal mode. You can use =o/O= to enter current line while staying in normal mode. You can use =o/O= to enter
@@ -282,11 +284,12 @@ moment), bind to general some basic binds.
";" #'eval-expression ";" #'eval-expression
":" (proc (interactive) (switch-to-buffer "*scratch*")) ":" (proc (interactive) (switch-to-buffer "*scratch*"))
"!" #'async-shell-command "!" #'async-shell-command
"q" #'save-buffers-kill-terminal "qq" #'save-buffers-kill-terminal
"cF" (proc (interactive) (find-file "~/Code/"))) "cF" (proc (interactive) (find-file "~/Code/")))
(leader (leader
:infix "f" :infix "f"
"f" #'find-file "f" #'find-file
"F" #'find-file-other-frame
"s" #'save-buffer "s" #'save-buffer
"p" (proc (interactive) (find-file (concat user-emacs-directory "config.org"))))) "p" (proc (interactive) (find-file (concat user-emacs-directory "config.org")))))
@@ -1292,7 +1295,7 @@ initial startup screen in default Emacs.
"}" #'dashboard-next-section "}" #'dashboard-next-section
"{" #'dashboard-previous-section) "{" #'dashboard-previous-section)
:init :init
(setq initial-buffer-choice "*dashboard*" (setq initial-buffer-choice nil
dashboard-banner-logo-title "Oreomacs" dashboard-banner-logo-title "Oreomacs"
dashboard-center-content t dashboard-center-content t
dashboard-set-init-info t dashboard-set-init-info t