fix: add golang, elfeed, org stuff
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
77210493e5
commit
7f0b2a0649
1 changed files with 38 additions and 3 deletions
|
@ -40,6 +40,9 @@
|
||||||
(straight-use-package 'justl)
|
(straight-use-package 'justl)
|
||||||
(straight-use-package 'org)
|
(straight-use-package 'org)
|
||||||
(straight-use-package 'org-roam)
|
(straight-use-package 'org-roam)
|
||||||
|
(straight-use-package 'elfeed)
|
||||||
|
(straight-use-package 'scribble-mode)
|
||||||
|
(straight-use-package 'go-mode)
|
||||||
(straight-use-package '(nano-theme :type git :host github
|
(straight-use-package '(nano-theme :type git :host github
|
||||||
:repo "rougier/nano-theme"))
|
:repo "rougier/nano-theme"))
|
||||||
|
|
||||||
|
@ -68,12 +71,15 @@
|
||||||
(setq line-number-mode t)
|
(setq line-number-mode t)
|
||||||
(setq column-number-mode t)
|
(setq column-number-mode t)
|
||||||
|
|
||||||
|
;; Tabs
|
||||||
|
(setq-default tab-width 2)
|
||||||
|
|
||||||
;; Cursor
|
;; Cursor
|
||||||
(blink-cursor-mode 1)
|
(blink-cursor-mode 1)
|
||||||
|
|
||||||
;; Font
|
;; Font
|
||||||
(defvar font-size 10)
|
(defvar font-size 10)
|
||||||
(defvar font-family "JetBrains Mono Medium")
|
(defvar font-family "JetBrains Mono SemiBold")
|
||||||
(set-frame-font (format "%s %d" font-family font-size))
|
(set-frame-font (format "%s %d" font-family font-size))
|
||||||
|
|
||||||
;; Use spaces instead of tabs
|
;; Use spaces instead of tabs
|
||||||
|
@ -85,6 +91,16 @@
|
||||||
;; Auto file refresh
|
;; Auto file refresh
|
||||||
(global-auto-revert-mode t)
|
(global-auto-revert-mode t)
|
||||||
|
|
||||||
|
;; Git Gutter
|
||||||
|
(global-git-gutter-mode +1)
|
||||||
|
|
||||||
|
;; Elfeed
|
||||||
|
(setq elfeed-feeds
|
||||||
|
'(("https://edwardwibowo.com/rss.xml" blog)
|
||||||
|
("https://priime.dev/feed.xml" blog)
|
||||||
|
("https://fasterthanli.me/index.xml" blog)
|
||||||
|
("https://blog.cleancoder.com/atom.xml" blog)))
|
||||||
|
|
||||||
;; Theme
|
;; Theme
|
||||||
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
|
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes")
|
||||||
(load-theme 'nano t)
|
(load-theme 'nano t)
|
||||||
|
@ -118,6 +134,19 @@
|
||||||
'org-babel-load-languages
|
'org-babel-load-languages
|
||||||
'((racket . t)))
|
'((racket . t)))
|
||||||
|
|
||||||
|
(defmacro η (fnc)
|
||||||
|
"Return function that ignores its arguments and invokes FNC."
|
||||||
|
`(lambda (&rest _rest)
|
||||||
|
(funcall ,fnc)))
|
||||||
|
|
||||||
|
;; Auto-save org buffers
|
||||||
|
(advice-add 'org-deadline :after (η #'org-save-all-org-buffers))
|
||||||
|
(advice-add 'org-schedule :after (η #'org-save-all-org-buffers))
|
||||||
|
(advice-add 'org-store-log-note :after (η #'org-save-all-org-buffers))
|
||||||
|
(advice-add 'org-todo :after (η #'org-save-all-org-buffers))
|
||||||
|
(advice-add 'org-refile :after (η #'org-save-all-org-buffers))
|
||||||
|
(advice-add 'org-sort :after (η #'org-save-all-org-buffers))
|
||||||
|
|
||||||
;; ====== mu4e ===============================
|
;; ====== mu4e ===============================
|
||||||
|
|
||||||
(require 'mu4e)
|
(require 'mu4e)
|
||||||
|
@ -176,9 +205,7 @@
|
||||||
(add-hook 'after-init-hook 'marginalia-mode)
|
(add-hook 'after-init-hook 'marginalia-mode)
|
||||||
(add-hook 'after-init-hook 'which-key-mode)
|
(add-hook 'after-init-hook 'which-key-mode)
|
||||||
(add-hook 'after-init-hook 'global-flycheck-mode)
|
(add-hook 'after-init-hook 'global-flycheck-mode)
|
||||||
(add-hook 'after-init-hook 'git-gutter-mode)
|
|
||||||
(add-hook 'after-init-hook 'workgroups-mode)
|
(add-hook 'after-init-hook 'workgroups-mode)
|
||||||
(add-hook 'after-init-hook 'git-gutter-mode)
|
|
||||||
(add-hook 'after-init-hook 'vertico-mode)
|
(add-hook 'after-init-hook 'vertico-mode)
|
||||||
|
|
||||||
(add-hook 'company-mode-hook 'company-box-mode)
|
(add-hook 'company-mode-hook 'company-box-mode)
|
||||||
|
@ -194,6 +221,14 @@
|
||||||
|
|
||||||
(add-hook 'python-mode 'lsp-mode)
|
(add-hook 'python-mode 'lsp-mode)
|
||||||
(add-hook 'rust-mode 'lsp-rust)
|
(add-hook 'rust-mode 'lsp-rust)
|
||||||
|
|
||||||
|
(add-hook 'racket-mode-hook 'racket-xp-mode)
|
||||||
|
|
||||||
|
(add-hook 'org-agenda-mode-hook
|
||||||
|
(lambda ()
|
||||||
|
(add-hook 'auto-save-hook 'org-save-all-org-buffers nil t)
|
||||||
|
(auto-save-mode)))
|
||||||
|
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
;; custom-set-variables was added by Custom.
|
;; custom-set-variables was added by Custom.
|
||||||
;; If you edit it by hand, you could mess it up, so be careful.
|
;; If you edit it by hand, you could mess it up, so be careful.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue