mirror of https://github.com/deuill/dotfiles.git
doom: Fix font size issues, autoload more stuff
This commit is contained in:
parent
3e74bf6b29
commit
4ff985fe11
|
@ -22,7 +22,7 @@
|
|||
;; Font definitions.
|
||||
doom-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
doom-big-font (font-spec :family "Iosevka" :size 28 :weight 'light)
|
||||
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 24 :weight 'light)
|
||||
doom-variable-pitch-font (font-spec :family "IBM Plex Sans" :size 22 :weight 'light)
|
||||
doom-serif-font (font-spec :family "IBM Plex Serif" :size 22 :weight 'light)
|
||||
doom-unicode-font (font-spec :family "Iosevka" :size 24 :weight 'light)
|
||||
|
||||
|
@ -72,12 +72,9 @@
|
|||
|
||||
(setq-default shell-file-name "/usr/bin/fish")
|
||||
|
||||
(after! browse-url
|
||||
(setq browse-url-browser-function 'eww-browse-url))
|
||||
|
||||
(after! dash-docs
|
||||
(setq dash-docs-docsets-path "~/.local/share/docsets"
|
||||
dash-docs-browser-func #'browse-url))
|
||||
dash-docs-browser-func #'eww))
|
||||
|
||||
(after! docker-tramp
|
||||
(setq docker-tramp-use-names t))
|
||||
|
@ -234,9 +231,6 @@
|
|||
(add-hook! git-commit-mode
|
||||
(setq indent-tabs-mode nil))
|
||||
|
||||
(add-hook! go-mode
|
||||
(add-hook 'before-save-hook 'gofmt-before-save))
|
||||
|
||||
(add-hook! 'go-mode-lsp-hook
|
||||
(flycheck-add-next-checker 'lsp 'golangci-lint))
|
||||
|
||||
|
@ -371,7 +365,7 @@
|
|||
:desc "Kill other buffers" "O" #'doom/kill-other-buffers
|
||||
:desc "Previous buffer" "p" #'previous-buffer
|
||||
:desc "Paste and replace buffer" "P" #'+custom/paste-buffer
|
||||
"r" nil
|
||||
:desc "Rename buffer" "r" #'rename-buffer
|
||||
:desc "Revert buffer" "R" #'+custom/safe-revert-buffer
|
||||
:desc "Save buffer" "s" #'basic-save-buffer
|
||||
:desc "Save all buffers" "S" #'evil-write-all
|
||||
|
|
|
@ -1,5 +1,9 @@
|
|||
;;; custom.el -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar +custom--killed-buffer-list nil
|
||||
"List of recently killed buffers.")
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/alternate-buffer-in-persp (&optional window)
|
||||
"Switch back and forth between current and last buffer in the current window."
|
||||
(interactive)
|
||||
|
@ -15,26 +19,27 @@
|
|||
(message "Last buffer not found.")
|
||||
(set-window-buffer-start-and-point window buf start pos))))
|
||||
|
||||
(defvar +custom--killed-buffer-list nil
|
||||
"List of recently killed buffers.")
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom--add-buffer-to-killed-list-h ()
|
||||
"If buffer is associated with a file name, add that file
|
||||
to the `killed-buffer-list' when killing the buffer."
|
||||
(when buffer-file-name
|
||||
(push buffer-file-name +custom--killed-buffer-list)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/reopen-killed-buffer ()
|
||||
"Reopen the most recently killed file buffer, if one exists."
|
||||
(interactive)
|
||||
(when +custom--killed-buffer-list
|
||||
(find-file (pop +custom--killed-buffer-list))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/yank-buffer ()
|
||||
"Copy entire buffer to the kill ring"
|
||||
(interactive)
|
||||
(clipboard-kill-ring-save (point-min) (point-max)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/paste-buffer ()
|
||||
"Copy clipboard and replace buffer"
|
||||
(interactive)
|
||||
|
@ -42,11 +47,13 @@ to the `killed-buffer-list' when killing the buffer."
|
|||
(clipboard-yank)
|
||||
(deactivate-mark))
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/safe-revert-buffer ()
|
||||
"Prompt before reverting the file."
|
||||
(interactive)
|
||||
(revert-buffer nil nil))
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/query-replace-buffer ()
|
||||
"Search and replace literal string in buffer."
|
||||
(interactive)
|
||||
|
@ -56,6 +63,7 @@ to the `killed-buffer-list' when killing the buffer."
|
|||
(call-interactively 'query-replace))
|
||||
(goto-char orig-point)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +custom/copy-this-file (new-path &optional force-p)
|
||||
"Copy current buffer's file to NEW-PATH, switching to the file immediately."
|
||||
(interactive
|
||||
|
|
|
@ -6,12 +6,14 @@
|
|||
(defvar +sql--highlightable-product-list nil
|
||||
"List of highlight-able SQL products.")
|
||||
|
||||
;;;###autoload
|
||||
(defun +sql--populate-product-list ()
|
||||
"Update list of SQL products."
|
||||
(setq +sql--highlightable-product-list sql-product-alist
|
||||
+sql--startable-product-list
|
||||
(cl-remove-if-not (lambda (product) (sql-get-product-feature (car product) :sqli-program)) sql-product-alist)))
|
||||
|
||||
;;;###autoload
|
||||
(defun +sql--get-product-names (products)
|
||||
"Get alist of SQL product names and symbols."
|
||||
(mapcar
|
||||
|
@ -19,6 +21,7 @@
|
|||
(cons (sql-get-product-feature (car product) :name) (car product)))
|
||||
products))
|
||||
|
||||
;;;###autoload
|
||||
(defun +sql/set-product ()
|
||||
"Set dialect-specific highlighting for buffer"
|
||||
(interactive)
|
||||
|
@ -29,6 +32,7 @@
|
|||
:action #'(lambda (product) (sql-set-product (cdr product)))
|
||||
:caller '+sql/open-repl))))
|
||||
|
||||
;;;###autoload
|
||||
(defun +sql/start ()
|
||||
"Set SQL dialect-specific highlighting and start inferior SQLi process."
|
||||
(interactive)
|
||||
|
|
|
@ -25,6 +25,7 @@
|
|||
|
||||
:editor
|
||||
(evil +everywhere)
|
||||
(format +onsave)
|
||||
file-templates
|
||||
fold
|
||||
multiple-cursors
|
||||
|
@ -66,6 +67,7 @@
|
|||
(php +lsp)
|
||||
(python +lsp)
|
||||
rest
|
||||
(rust +lsp)
|
||||
sh
|
||||
web
|
||||
yaml
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
PATH="$PATH:$HOME/.local/bin:$HOME/.go/bin"
|
||||
GOPATH="$HOME/.go"
|
||||
RIPGREP_CONFIG_PATH="$HOME/.config/ripgrep/ripgreprc"
|
||||
|
|
|
@ -9,4 +9,3 @@ MOZ_ENABLE_WAYLAND=1
|
|||
# Application themeing.
|
||||
GTK_THEME=Materia:dark
|
||||
QT_QPA_PLATFORMTHEME=gnome
|
||||
QT_FONT_DPI=140
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
--glob=!vendor/
|
||||
--glob=!.git/
|
|
@ -61,6 +61,11 @@ tooltip {
|
|||
margin-right: 0.25rem;
|
||||
}
|
||||
|
||||
#tray label {
|
||||
font-family: "IBM Plex Sans", sans-serif;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
#battery.critical {
|
||||
color: #ab4642;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue