Stuff
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
;;(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-banner)
|
||||
(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))
|
||||
(setq-hook! '+doom-dashboard-mode-hook evil-normal-state-cursor (list nil))
|
||||
|
||||
;; Set name & e-mail
|
||||
(setq user-full-name "opal"
|
||||
user-mail-address "ry.orlando@proton.me")
|
||||
|
||||
;; Theme & background color
|
||||
(load-theme 'ef-eagle t)
|
||||
(set-face-background 'default "#E8D8B0")
|
||||
|
||||
;; Remove line numbers from specific modes
|
||||
(dolist (mode '(org-mode-hook
|
||||
term-mode-hook
|
||||
shell-mode-hook
|
||||
eshell-mode-hook))
|
||||
(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 'fixed-pitch nil :font "Terminus" :height 1.0 :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 '("clj" . "src clojure")))
|
||||
|
||||
|
||||
;; Elfeed configuration
|
||||
(defun opal/elfeed-open-in-firefox ()
|
||||
"Open the current Elfeed entry link in Firefox."
|
||||
(interactive)
|
||||
@@ -180,6 +183,11 @@
|
||||
(("C-c e" . elfeed)
|
||||
("C-c f" . opal/elfeed-open-in-firefox))
|
||||
: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
|
||||
(setq elfeed-feeds
|
||||
'(
|
||||
@@ -229,19 +237,22 @@
|
||||
|
||||
(setq create-lockfiles nil)
|
||||
|
||||
(setq browse-url-browser-function 'eww-browse-url)
|
||||
|
||||
;; Make sure eww opens in it's own buffer
|
||||
(after! eww
|
||||
(set-popup-rule! "^\\*eww\\*" :ignore t))
|
||||
|
||||
(setq erc-server "irc.libera.chat"
|
||||
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"))
|
||||
(setq eww-auto-rename-buffer 'title)
|
||||
|
||||
(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 ()
|
||||
"Remove the second asterisk in **bold** text, converting it to *bold* in an Org file, without affecting spaces or headings."
|
||||
(interactive)
|
||||
|
||||
@@ -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-l>', '<C-w>l', { noremap = true })
|
||||
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
vim.o.background = "light" -- or "light" for light mode
|
||||
|
||||
@@ -38,8 +38,8 @@ require("lazy").setup({
|
||||
overrides = {
|
||||
SignColumn = { bg = "#1e2021" },
|
||||
},
|
||||
transparent_mode = true,
|
||||
})
|
||||
vim.cmd("colorscheme gruvbox")
|
||||
end
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user