Update emacs.org

This commit is contained in:
Sakooooo 2023-11-26 13:14:09 +04:00 committed by GitHub
parent 568d1913cf
commit a09a2466b2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -389,7 +389,7 @@ Should make startup faster, taken from doom-emacs
"gci" `(forge-create-issue :which-key "issue") "gci" `(forge-create-issue :which-key "issue")
"gcp" `(forge-create-pullreq :which-key "pull request"))) "gcp" `(forge-create-pullreq :which-key "pull request")))
#+end_src #+end_src
** Emacs-Dashboard ** Dashboard
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package dashboard (use-package dashboard
:ensure t :ensure t
@ -407,11 +407,26 @@ Should make startup faster, taken from doom-emacs
(setq dashboard-center-content t) (setq dashboard-center-content t)
;; jump thing ;; jump thing
(setq dashboard-show-shortcuts nil) (setq dashboard-show-shortcuts nil)
(setq dashboard-items '((projects . 5) (setq dashboard-items '((recent . 3)
(projects . 3)
(agenda . 5))) (agenda . 5)))
(setq dashboard-projects-switch-function 'counsel-projectile-switch-project-by-name) (setq dashboard-projects-switch-function 'counsel-projectile-switch-project-by-name)
(setq dashboard-footer-messages '("I think I have Emacs pinky!")) (setq dashboard-footer-messages '("I think I have Emacs pinky!"
(dashboard-setup-startup-hook)) "Eating a burger with no honey mustard"
"why are oranges called oranges?"
"but an apple is not called red"
"TODO find a replacement for hands"
"the best OS it just needs a good text editor"
"why are we still using one thread"
"goodness gracious!!!!"
"kanye west is literally me"
"i drive"
"happy waking up day"
"why are we still using lisp again?"
"one more ai application i swear to god"))
(dashboard-setup-startup-hook)
:hook
(dashboard-mode . hide-mode-line-mode))
#+end_src #+end_src
** Evil Mode (vim) ** Evil Mode (vim)
#+begin_src emacs-lisp #+begin_src emacs-lisp
@ -486,14 +501,8 @@ Should make startup faster, taken from doom-emacs
#+end_src #+end_src
** Org-Mode ** Org-Mode
#+begin_src emacs-lisp #+begin_src emacs-lisp
(defun sakomacs/org-mode-setup ()
(org-indent-mode)
(variable-pitch-mode 1)
(visual-line-mode 1))
(use-package org (use-package org
:straight t :straight t
:hook (org-mode . sakomacs/org-mode-setup)
:config :config
(setq org-ellipsis "▼") (setq org-ellipsis "▼")
(setq org-agenda-start-with-log-mode t) (setq org-agenda-start-with-log-mode t)
@ -629,17 +638,10 @@ Should make startup faster, taken from doom-emacs
(use-package org-superstar (use-package org-superstar
:after org :after org
:hook (org-mode . org-superstar-mode) :hook (org-mode . org-superstar-mode)
:custom :config
(org-superstar-headline-bullets-list'("◉" "○" "●" "○" "●" "○" "●"))) (setq org-superstar-headline-bullets-list '("◉" "○" "◈" "◎")))
(use-package olivetti
;; word :hook (org-mode . (lambda () (interactive) (olivetti-mode) (olivetti-set-width 100))))
(defun sakomacs/org-mode-visual-fill ()
(setq visual-fill-column-width 100
visual-fill-column-center-text t)
(visual-fill-column-mode 1))
(use-package visual-fill-column
:hook (org-mode . sakomacs/org-mode-visual-fill))
#+end_src #+end_src
** Org-Roam ** Org-Roam
#+begin_src emacs-lisp #+begin_src emacs-lisp