Added development section
This commit is contained in:
100
Emacs.org
100
Emacs.org
@@ -1,3 +1,4 @@
|
||||
|
||||
#+TITLE: Emacs Configuration
|
||||
#+PROPERTY: header-args:emacs-lisp :tangle ~/Dotfiles/.config/emacs/init.el :mkdirp yes :lexical yes
|
||||
|
||||
@@ -221,7 +222,9 @@ I really enjoy having a leader key and eschewing the Control and Alt keys entire
|
||||
"." #'find-file ;; Find file (opens in mini-buffer)
|
||||
"," #'consult-buffer ;; Switch to buffer
|
||||
"<" #'switch-to-buffer ;; Switch to non-perspective.el minibuffer
|
||||
"s" #'consult-line ;; Search in current buffer
|
||||
"s" #'consult-line
|
||||
"p" #'projectile-command-map
|
||||
"l" #'lsp-map
|
||||
|
||||
;; Magit
|
||||
"gg" #'magit-status
|
||||
@@ -233,7 +236,8 @@ I really enjoy having a leader key and eschewing the Control and Alt keys entire
|
||||
"bl" #'persp-next
|
||||
"bh" #'persp-prev
|
||||
"br" #'persp-rename
|
||||
"bd" #'persp-remove-buffer
|
||||
"bD" #'persp-remove-buffer
|
||||
"bd" #'kill-buffer
|
||||
|
||||
;; Terminal/Shell
|
||||
"tt" #'vterm
|
||||
@@ -259,8 +263,8 @@ I really enjoy having a leader key and eschewing the Control and Alt keys entire
|
||||
"dv" #'describe-variable
|
||||
"ds" #'describe-symbol
|
||||
"dk" #'describe-key
|
||||
"dp" #'describe-package))
|
||||
#+end_src
|
||||
"dp" #'describe-package))
|
||||
#+end_src
|
||||
|
||||
*** Evil
|
||||
#+begin_src emacs-lisp
|
||||
@@ -658,7 +662,7 @@ Creates margins in Org mode to make it more pleasant to look at.
|
||||
(add-to-list 'org-structure-template-alist '("scm" . "src scheme"))
|
||||
(add-to-list 'org-structure-template-alist '("cl" . "src lisp")))
|
||||
#+end_src
|
||||
** Programming/Editor
|
||||
** Development/Editing
|
||||
*** General
|
||||
**** Syntax (Flycheck)
|
||||
#+begin_src emacs-lisp
|
||||
@@ -686,6 +690,47 @@ Sets HTML strings to have the background of the color they represent.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package rainbow-mode :straight t)
|
||||
#+end_src
|
||||
*** Magit
|
||||
#+begin_src emacs-lisp
|
||||
(use-package magit
|
||||
:straight t)
|
||||
#+end_src
|
||||
*** Projectile
|
||||
#+begin_src emacs-lisp
|
||||
(use-package projectile
|
||||
:straight t
|
||||
:config
|
||||
(projectile-mode)
|
||||
:init
|
||||
(when (file-directory-p "~/Projects/Code")
|
||||
(setq projectile-project-search-path '("~/Projects/Code")))
|
||||
(setq projectile-switch-project-action #'projectile-dired))
|
||||
#+end_src
|
||||
*** LSP
|
||||
#+begin_src emacs-lisp
|
||||
(use-package lsp-mode
|
||||
:straight t
|
||||
:commands (lsp lsp-deferred)
|
||||
:config
|
||||
(lsp-enable-which-key-integration t))
|
||||
|
||||
(use-package lsp-ui
|
||||
:straight t
|
||||
:hook (lsp-mode . lsp-ui-mode)
|
||||
:custom
|
||||
(lsp-ui-doc-position 'bottom))
|
||||
|
||||
#+end_src
|
||||
|
||||
*** Python
|
||||
#+begin_src emacs-lisp
|
||||
(use-package python-mode
|
||||
:ensure t
|
||||
:hook (python-mode . lsp-deferred)
|
||||
:custom
|
||||
(python-shell-interpreter "python3"))
|
||||
#+end_src
|
||||
|
||||
*** Lisp
|
||||
#+begin_src emacs-lisp
|
||||
(use-package parinfer
|
||||
@@ -702,52 +747,51 @@ Sets HTML strings to have the background of the color they represent.
|
||||
#+begin_src emacs-lisp
|
||||
(defvar inferior-lisp-program "sbcl")
|
||||
(use-package sly :straight t)
|
||||
#+end_src
|
||||
*** Snippets
|
||||
Snippets allow certain files to be filled with a template depending on its filename extension.
|
||||
#+begin_src emacs-lisp
|
||||
(use-package yasnippet
|
||||
:straight t
|
||||
:hook (prog-mode . yas-minor-mode)
|
||||
:config
|
||||
(yas-reload-all))
|
||||
#+end_src
|
||||
* Tools
|
||||
** Magit
|
||||
#+begin_src emacs-lisp
|
||||
(use-package magit
|
||||
:straight t)
|
||||
#+end_src
|
||||
** Eshell
|
||||
#+begin_src emacs-lisp
|
||||
(use-package eshell-git-prompt :straight t)
|
||||
|
||||
(use-package eshell
|
||||
:straight t
|
||||
:config
|
||||
;; Save command history when commands are entered
|
||||
(add-hook 'eshell-pre-command-hook 'eshell-save-some-history)
|
||||
;; Truncate buffer for performance
|
||||
(add-to-list 'eshell-output-filter-functions 'eshell-truncate-buffer)
|
||||
|
||||
;; Evil keybinds
|
||||
(evil-define-key '(normal insert visual) eshell-mode-map (kbd "C-r") 'counsel-esh-history)
|
||||
(evil-define-key '(normal insert visual) eshell-mode-map (kbd "<home>") 'eshell-bol)
|
||||
(evil-normalize-keymaps)
|
||||
|
||||
(with-eval-after-load 'esh-opt
|
||||
(setq eshell-destroy-buffer-when-process-dies t)
|
||||
(setq eshell-visual-commands '("htop" "zsh" "vim")))
|
||||
|
||||
(eshell-git-prompt-use-theme 'powerline)
|
||||
|
||||
(setq eshell-banner-message
|
||||
'(format "%s %s\n"
|
||||
(propertize (format " %s " (string-trim (buffer-name)))
|
||||
'face 'mode-line-highlight)
|
||||
(propertize (current-time-string)
|
||||
'face 'font-lock-keyword-face))
|
||||
eshell-scroll-to-bottom-on-input 'all
|
||||
'face 'font-lock-keyword-face)))
|
||||
|
||||
(setq eshell-scroll-to-bottom-on-input 'all
|
||||
eshell-scroll-to-bottom-on-output 'all
|
||||
eshell-kill-processes-on-exit t
|
||||
eshell-hist-ignoredups t
|
||||
;; em-prompt
|
||||
eshell-prompt-regexp "^.* λ "
|
||||
;; em-glob
|
||||
eshell-history-size 10000
|
||||
eshell-buffer-maximum-lines 10000
|
||||
eshell-scroll-to-bottom-on-input t))
|
||||
eshell-scroll-to-bottom-on-input t)
|
||||
|
||||
(with-eval-after-load 'esh-opt
|
||||
(setq eshell-destroy-buffer-when-process-dies t)
|
||||
(setq eshell-visual-commands '("htop" "zsh" "vim"))))
|
||||
|
||||
#+end_src
|
||||
|
||||
** Vterm
|
||||
#+begin_src emacs-lisp
|
||||
(use-package vterm
|
||||
@@ -758,6 +802,7 @@ Sets HTML strings to have the background of the color they represent.
|
||||
(setq vterm-shell "zsh")
|
||||
(setq vterm-max-scrollback 10000))
|
||||
#+end_src
|
||||
|
||||
** PDF
|
||||
#+begin_src emacs-lisp
|
||||
(use-package pdf-tools
|
||||
@@ -884,6 +929,5 @@ Right now I'm pretty happy with Matrix bridging into IRC rooms so this will stay
|
||||
|
||||
;; (require 'exwm-systemtray)
|
||||
;; (exwm-systemtray-enable)
|
||||
;; (exwm-enable))
|
||||
|
||||
;; (exwm-enable))
|
||||
#+end_src
|
||||
|
||||
Reference in New Issue
Block a user