Update emacs.org

This commit is contained in:
Sakooooo 2023-12-14 23:53:03 +04:00 committed by GitHub
parent cb2e79f9cd
commit a84d6e746b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -36,7 +36,7 @@ Should make startup faster, taken from doom-emacs
#+begin_src emacs-lisp #+begin_src emacs-lisp
(setq frame-resize-pixelwise t) (setq frame-resize-pixelwise t)
;; ui settings apparently go below ;; ui settings apparently go below
(setq default-frame-alist '((font . "JetBrains Mono") (setq default-frame-alist '((font . "JetBrainsMono NF")
'(vertical-scroll-bars . nil) '(vertical-scroll-bars . nil)
'(horizontal-scroll-bars . nil))) '(horizontal-scroll-bars . nil)))
@ -80,7 +80,7 @@ Should make startup faster, taken from doom-emacs
#+end_src #+end_src
* Fonts * Fonts
#+begin_src emacs-lisp #+begin_src emacs-lisp
(set-face-attribute `default nil :font "JetBrains Mono" :height 130) (set-face-attribute `default nil :font "JetBrainsMono NF" :height 130)
#+end_src #+end_src
* Use-Package setup * Use-Package setup
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -176,6 +176,20 @@ Should make startup faster, taken from doom-emacs
(setq native-comp-deferred-compilation-deny-list nil) (setq native-comp-deferred-compilation-deny-list nil)
(setq warning-suppress-log-types '((comp))) (setq warning-suppress-log-types '((comp)))
#+end_src #+end_src
* Custom Modeline
#+begin_src emacs-lisp
(setq-default mode-line-format
`("%e"
" "
(:eval (cond
((eq evil-state 'visual) "󰰫")
((eq evil-state 'normal) "󰰓")
((eq evil-state 'insert) "󰰄")
((eq evil-state 'emacs) "")
((eq evil-state 'yank) "󰰴")))
" "
))
#+end_src
* Packages * Packages
** Log state ** Log state
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -292,11 +306,11 @@ Should make startup faster, taken from doom-emacs
#+end_src #+end_src
** Custom Modeline ** Custom Modeline
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package doom-modeline ;; (use-package doom-modeline
:ensure t ;; :ensure t
:straight t ;; :straight t
:hook (after-init . doom-modeline-mode) ;; :hook (after-init . doom-modeline-mode)
:custom ((doom-modeline-height 40))) ;; :custom ((doom-modeline-height 40)))
#+end_src #+end_src
** Hide Modeline ** Hide Modeline
#+begin_src emacs-lisp #+begin_src emacs-lisp