This commit is contained in:
Sakooooo 2023-09-15 15:06:09 +00:00
parent 4c6f3c8544
commit 125fd8daa6
Signed by: sako
GPG key ID: FE52FD65B76E4751
2 changed files with 75 additions and 2 deletions

View file

@ -43,7 +43,7 @@ M-x org-bable-tangle
* Fonts * Fonts
#+begin_src emacs-lisp #+begin_src emacs-lisp
(set-face-attribute `default nil :font "JetBrains Mono" :height 125) (set-face-attribute `default nil :font "JetBrains Mono" :height 150)
#+end_src #+end_src
* Package setup * Package setup
@ -546,3 +546,43 @@ make sure to setup authinfo
(org-babel-tangle))) (org-babel-tangle)))
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'sakomacs/org-babel-tangle-config)))) (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'sakomacs/org-babel-tangle-config))))
#+end_src #+end_src
* Terminals
** term-mode
#+begin_src emacs-lisp
(use-package term
:config
(setq explicit-shell-file-name "zsh")
#+end_src
** EShell
god dammit why are they making my shells in emacs lisp
#+begin_src emacs-lisp
(defun sakomacs/configure-eshell ()
;; 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)
;; Bind some useful keys for evil-mode
(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)
(setq eshell-history-size 10000
eshell-buffer-maximum-lines 10000
eshell-hist-ignoredups t
eshell-scroll-to-bottom-on-input t))
(use-package eshell-git-prompt)
(use-package eshell
:hook (eshell-first-time-mode . sakomacs/configure-eshell)
:config
(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))
#+end_src

View file

@ -21,7 +21,7 @@
(global-set-key (kbd "C-M-j") 'counsel-switch-buffer) (global-set-key (kbd "C-M-j") 'counsel-switch-buffer)
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) (global-set-key (kbd "<escape>") 'keyboard-escape-quit)
(set-face-attribute `default nil :font "JetBrains Mono" :height 125) (set-face-attribute `default nil :font "JetBrains Mono" :height 150)
(require `package) (require `package)
@ -461,3 +461,36 @@
(let ((org-confirm-babel-evaluate nil)) (let ((org-confirm-babel-evaluate nil))
(org-babel-tangle))) (org-babel-tangle)))
(add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'sakomacs/org-babel-tangle-config)))) (add-hook 'org-mode-hook (lambda () (add-hook 'after-save-hook #'sakomacs/org-babel-tangle-config))))
(use-package term
:config
(setq explicit-shell-file-name "zsh")
(defun sakomacs/configure-eshell ()
;; 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)
;; Bind some useful keys for evil-mode
(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)
(setq eshell-history-size 10000
eshell-buffer-maximum-lines 10000
eshell-hist-ignoredups t
eshell-scroll-to-bottom-on-input t))
(use-package eshell-git-prompt)
(use-package eshell
:hook (eshell-first-time-mode . sakomacs/configure-eshell)
:config
(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))