This commit is contained in:
2024-09-03 21:26:55 -07:00
parent 304d81bf4b
commit ba5e462587
3 changed files with 25 additions and 12 deletions

View File

@@ -1,5 +1,6 @@
;;(setq fancy-splash-image "~/.config/doom/splash.png") ;;(setq fancy-splash-image "~/.config/doom/splash.png")
;; Clean up starting screen to be blank
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-shortmenu) (remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-shortmenu)
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-banner) (remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-banner)
(remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-footer) (remove-hook '+doom-dashboard-functions #'doom-dashboard-widget-footer)
@@ -7,20 +8,22 @@
(add-hook! '+doom-dashboard-mode-hook (hide-mode-line-mode 1) (hl-line-mode -1)) (add-hook! '+doom-dashboard-mode-hook (hide-mode-line-mode 1) (hl-line-mode -1))
(setq-hook! '+doom-dashboard-mode-hook evil-normal-state-cursor (list nil)) (setq-hook! '+doom-dashboard-mode-hook evil-normal-state-cursor (list nil))
;; Set name & e-mail
(setq user-full-name "opal" (setq user-full-name "opal"
user-mail-address "ry.orlando@proton.me") user-mail-address "ry.orlando@proton.me")
;; Theme & background color
(load-theme 'ef-eagle t) (load-theme 'ef-eagle t)
(set-face-background 'default "#E8D8B0") (set-face-background 'default "#E8D8B0")
;; Remove line numbers from specific modes
(dolist (mode '(org-mode-hook (dolist (mode '(org-mode-hook
term-mode-hook term-mode-hook
shell-mode-hook shell-mode-hook
eshell-mode-hook)) eshell-mode-hook))
(add-hook mode (lambda () (display-line-numbers-mode 0)))) (add-hook mode (lambda () (display-line-numbers-mode 0))))
(setq browse-url-browser-function 'eww-browse-url) ;; Font configuration
(set-face-attribute 'default nil :font "Terminus" :height 200 :weight 'regular) (set-face-attribute 'default nil :font "Terminus" :height 200 :weight 'regular)
(set-face-attribute 'fixed-pitch nil :font "Terminus" :height 1.0 :weight 'regular) (set-face-attribute 'fixed-pitch nil :font "Terminus" :height 1.0 :weight 'regular)
(set-face-attribute 'variable-pitch nil :font "ETBookOT" :height 200 :weight 'regular) (set-face-attribute 'variable-pitch nil :font "ETBookOT" :height 200 :weight 'regular)
@@ -161,7 +164,7 @@
(add-to-list 'org-structure-template-alist '("py" . "src python")) (add-to-list 'org-structure-template-alist '("py" . "src python"))
(add-to-list 'org-structure-template-alist '("clj" . "src clojure"))) (add-to-list 'org-structure-template-alist '("clj" . "src clojure")))
;; Elfeed configuration
(defun opal/elfeed-open-in-firefox () (defun opal/elfeed-open-in-firefox ()
"Open the current Elfeed entry link in Firefox." "Open the current Elfeed entry link in Firefox."
(interactive) (interactive)
@@ -180,6 +183,11 @@
(("C-c e" . elfeed) (("C-c e" . elfeed)
("C-c f" . opal/elfeed-open-in-firefox)) ("C-c f" . opal/elfeed-open-in-firefox))
:config :config
;; Set fonts
(set-face-attribute 'elfeed-search-filter-face nil :inherit 'variable-pitch :height 200)
(set-face-attribute 'elfeed-search-title-face nil :inherit 'variable-pitch :height 200)
(set-face-attribute 'elfeed-search-feed-face nil :inherit 'variable-pitch :height 200)
(set-face-attribute 'elfeed-nil :inherit 'variable-pitch :height 200)
;; Set your feeds ;; Set your feeds
(setq elfeed-feeds (setq elfeed-feeds
'( '(
@@ -229,19 +237,22 @@
(setq create-lockfiles nil) (setq create-lockfiles nil)
(setq browse-url-browser-function 'eww-browse-url)
;; Make sure eww opens in it's own buffer ;; Make sure eww opens in it's own buffer
(after! eww (after! eww
(set-popup-rule! "^\\*eww\\*" :ignore t)) (set-popup-rule! "^\\*eww\\*" :ignore t))
(setq erc-server "irc.libera.chat" (setq eww-auto-rename-buffer 'title)
erc-nick "opalvault"
erc-user-full-name "Opal"
erc-track-shorten-start 8
erc-autojoin-channels-alist '(("irc.libera.chat" "#systemcrafters" "#emacs" "#nyxt" "#guix"))
erc-kill-buffer-on-part t
erc-auto-query 'bury
erc-hide-list '("JOIN" "PART" "QUIT"))
(defun opal/eww-reddit-redirect(url)
"Redirect reddit.com to custom URL automatically since Reddit blocks eww."
(replace-regexp-in-string "https://www.reddit.com" "https://safereddit.com" url))
(setq eww-url-transformers '(eww-remove-tracking opal/eww-reddit-redirect))
;; Temporary functions
(defun opal/remove-extra-asterisks-in-org () (defun opal/remove-extra-asterisks-in-org ()
"Remove the second asterisk in **bold** text, converting it to *bold* in an Org file, without affecting spaces or headings." "Remove the second asterisk in **bold** text, converting it to *bold* in an Org file, without affecting spaces or headings."
(interactive) (interactive)

View File

@@ -49,3 +49,5 @@ vim.api.nvim_set_keymap('n', '<C-j>', '<C-w>j', { noremap = true })
vim.api.nvim_set_keymap('n', '<C-k>', '<C-w>k', { noremap = true }) vim.api.nvim_set_keymap('n', '<C-k>', '<C-w>k', { noremap = true })
vim.api.nvim_set_keymap('n', '<C-l>', '<C-w>l', { noremap = true }) vim.api.nvim_set_keymap('n', '<C-l>', '<C-w>l', { noremap = true })
vim.cmd("colorscheme gruvbox")
vim.o.background = "light" -- or "light" for light mode

View File

@@ -38,8 +38,8 @@ require("lazy").setup({
overrides = { overrides = {
SignColumn = { bg = "#1e2021" }, SignColumn = { bg = "#1e2021" },
}, },
transparent_mode = true,
}) })
vim.cmd("colorscheme gruvbox")
end end
}, },
}, },