Update emacs.org

This commit is contained in:
Sako 2023-12-15 01:06:30 +04:00 committed by GitHub
parent a84d6e746b
commit 1df7c8d9da
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -68,6 +68,7 @@ Should make startup faster, taken from doom-emacs
(add-hook 'yaml-mode 'display-line-numbers-mode) (add-hook 'yaml-mode 'display-line-numbers-mode)
(add-hook 'conf-mode 'display-line-numbers-mode) (add-hook 'conf-mode 'display-line-numbers-mode)
(setq display-line-numbers-width-start t) (setq display-line-numbers-width-start t)
(setq display-line-numbers-type 'relative)
#+end_src #+end_src
* Keymaps * Keymaps
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -77,6 +78,8 @@ Should make startup faster, taken from doom-emacs
(global-set-key (kbd "<escape>") 'keyboard-escape-quit) (global-set-key (kbd "<escape>") 'keyboard-escape-quit)
;; repeat keybinds ;; repeat keybinds
(repeat-mode) (repeat-mode)
;; electric pairs
(electric-pair-mode)
#+end_src #+end_src
* Fonts * Fonts
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -178,17 +181,18 @@ Should make startup faster, taken from doom-emacs
#+end_src #+end_src
* Custom Modeline * Custom Modeline
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq-default mode-line-format (setq-default mode-line-format
`("%e" `("%e"
" " " "
(:eval (cond (:eval (cond
((eq evil-state 'visual) "󰰫") ((eq evil-state 'visual) "󰰫")
((eq evil-state 'normal) "󰰓") ((eq evil-state 'normal) "󰰓")
((eq evil-state 'insert) "󰰄") ((eq evil-state 'insert) "󰰄")
((eq evil-state 'emacs) "") ((eq evil-state 'emacs) "")
((eq evil-state 'yank) "󰰴"))) ((eq evil-state 'yank) "󰰴")))
" " " "
)) (:eval (buffer-name))
))
#+end_src #+end_src
* Packages * Packages
** Log state ** Log state