~emacs-lisp -> elisp in src blocks
elisp is easier to read, write and say than emacs-lisp. Verbosity isn't necessarily the best policy
This commit is contained in:
@@ -7,7 +7,7 @@ This is my [[https://github.com/hlissner/doom-emacs][Doom Emacs]] configuration,
|
|||||||
possibe. It is currently my main C# and Python editor but hopefully it will
|
possibe. It is currently my main C# and Python editor but hopefully it will
|
||||||
become my C one soon!
|
become my C one soon!
|
||||||
* Global variables
|
* Global variables
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(setq doom-localleader-key ",")
|
(setq doom-localleader-key ",")
|
||||||
(setq warning-minimum-level :emergency)
|
(setq warning-minimum-level :emergency)
|
||||||
(setq completion-ignore-case t)
|
(setq completion-ignore-case t)
|
||||||
@@ -19,7 +19,7 @@ become my C one soon!
|
|||||||
- Projectile tags commands
|
- Projectile tags commands
|
||||||
|
|
||||||
* General keymap
|
* General keymap
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(map!
|
(map!
|
||||||
:leader
|
:leader
|
||||||
:desc "M-x" "<SPC>" 'counsel-M-x
|
:desc "M-x" "<SPC>" 'counsel-M-x
|
||||||
@@ -72,7 +72,7 @@ become my C one soon!
|
|||||||
* Custom
|
* Custom
|
||||||
** Packages
|
** Packages
|
||||||
*** Projectile
|
*** Projectile
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! projectile
|
(after! projectile
|
||||||
(setq oreodave-tags-alist '("Makefile" "node_modules" "bin" "dist" "obj" "'*.json'"))
|
(setq oreodave-tags-alist '("Makefile" "node_modules" "bin" "dist" "obj" "'*.json'"))
|
||||||
(defun oreodave/config/construct-tags ()
|
(defun oreodave/config/construct-tags ()
|
||||||
@@ -86,12 +86,12 @@ become my C one soon!
|
|||||||
Really simple, just want to set projectile-tags-command when projectile has
|
Really simple, just want to set projectile-tags-command when projectile has
|
||||||
loaded, and easily add new ignores if necessary.
|
loaded, and easily add new ignores if necessary.
|
||||||
*** Wakatime
|
*** Wakatime
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(setq wakatime-api-key (shell-command-to-string "pass Keys/Wakatime"))
|
(setq wakatime-api-key (shell-command-to-string "pass Keys/Wakatime"))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
Using new password holder (pass) to help with secure transactions.
|
Using new password holder (pass) to help with secure transactions.
|
||||||
*** Elfeed
|
*** Elfeed
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! elfeed
|
(after! elfeed
|
||||||
(defun oreodave/elfeed/load-feeds ()
|
(defun oreodave/elfeed/load-feeds ()
|
||||||
(interactive)
|
(interactive)
|
||||||
@@ -119,12 +119,12 @@ Using new password holder (pass) to help with secure transactions.
|
|||||||
)
|
)
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** Dash
|
*** Dash
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(setq dash-docs-docsets-path "~/.docsets")
|
(setq dash-docs-docsets-path "~/.docsets")
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
My docsets are stored in .docsets for ease of use
|
My docsets are stored in .docsets for ease of use
|
||||||
*** wttrin
|
*** wttrin
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! wttrin
|
(after! wttrin
|
||||||
(defun oreodave/weather ()
|
(defun oreodave/weather ()
|
||||||
(interactive)
|
(interactive)
|
||||||
@@ -132,13 +132,13 @@ My docsets are stored in .docsets for ease of use
|
|||||||
#+END_SRC
|
#+END_SRC
|
||||||
** Languages
|
** Languages
|
||||||
*** C-style
|
*** C-style
|
||||||
#+BEGIN_SRC emacs-lisp
|
|
||||||
(after! c-mode c++-mode
|
(after! c-mode c++-mode
|
||||||
|
#+BEGIN_SRC elisp
|
||||||
(add-hook! 'c-mode-hook '(lambda ()
|
(add-hook! 'c-mode-hook '(lambda ()
|
||||||
(setq c-basic-offset 2))))
|
(setq c-basic-offset 2))))
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
*** C#
|
*** C#
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! csharp-mode
|
(after! csharp-mode
|
||||||
(defun oreodave/csharp/get-unit-test-in-project ()
|
(defun oreodave/csharp/get-unit-test-in-project ()
|
||||||
(interactive)
|
(interactive)
|
||||||
@@ -238,7 +238,7 @@ each of the unit tests ran."
|
|||||||
tags for test specific context, then goes to it and uses an omnisharp test
|
tags for test specific context, then goes to it and uses an omnisharp test
|
||||||
command to unit test it
|
command to unit test it
|
||||||
*** Python
|
*** Python
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! python
|
(after! python
|
||||||
(setq python-version-checked t)
|
(setq python-version-checked t)
|
||||||
(setq python-python-command "python3")
|
(setq python-python-command "python3")
|
||||||
@@ -263,7 +263,7 @@ each of the unit tests ran."
|
|||||||
- Most of my python work is in scripts or ideas, so I don't need extensive testing utilities or anything like that
|
- Most of my python work is in scripts or ideas, so I don't need extensive testing utilities or anything like that
|
||||||
- I run my python code a LOT and thus need commands for sending bits or whole scripts into the REPL
|
- I run my python code a LOT and thus need commands for sending bits or whole scripts into the REPL
|
||||||
*** JavaScript/TypeScript
|
*** JavaScript/TypeScript
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! typescript-mode
|
(after! typescript-mode
|
||||||
(setq typescript-indent-level 2)
|
(setq typescript-indent-level 2)
|
||||||
(setq tide-format-options '(:indentSize 2 :tabSize 2))
|
(setq tide-format-options '(:indentSize 2 :tabSize 2))
|
||||||
@@ -277,7 +277,7 @@ each of the unit tests ran."
|
|||||||
- Typescript (in my opinion) should be indented by 2
|
- Typescript (in my opinion) should be indented by 2
|
||||||
- I like having one keybind to format a file, thus need to rebind
|
- I like having one keybind to format a file, thus need to rebind
|
||||||
*** Org
|
*** Org
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC elisp
|
||||||
(after! org
|
(after! org
|
||||||
(add-hook 'org-mode-hook #'visual-line-mode)
|
(add-hook 'org-mode-hook #'visual-line-mode)
|
||||||
(remove-hook 'org-mode-hook #'auto-fill-mode)
|
(remove-hook 'org-mode-hook #'auto-fill-mode)
|
||||||
|
|||||||
Reference in New Issue
Block a user