mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2025-01-19 03:43:59 -05:00
emacs: steal nice things from tecosaur's config
This commit is contained in:
parent
749cb6fb72
commit
6e3e0e32da
@ -70,7 +70,9 @@
|
|||||||
|
|
||||||
- [@hlissner](https://github.com/hlissner) for a detailed zsh config (and Doom Emacs)
|
- [@hlissner](https://github.com/hlissner) for a detailed zsh config (and Doom Emacs)
|
||||||
|
|
||||||
- [@daviwil](https://github.com/daviwil) for his Emacs streams
|
- [@daviwil](https://github.com/daviwil)'s Emacs streams
|
||||||
|
|
||||||
|
- [@tecosaur](https://tecosaur.github.io/emacs-config/config.html)'s Emacs configuration
|
||||||
|
|
||||||
- My Waybar config is heavily inspired by [@begs](https://git.sr.ht/~begs/dotfiles)
|
- My Waybar config is heavily inspired by [@begs](https://git.sr.ht/~begs/dotfiles)
|
||||||
|
|
||||||
|
@ -11,9 +11,27 @@
|
|||||||
;; Secrets
|
;; Secrets
|
||||||
(setq auth-sources '("~/.config/doom/.authinfo.gpg"))
|
(setq auth-sources '("~/.config/doom/.authinfo.gpg"))
|
||||||
|
|
||||||
|
;; Better default settings
|
||||||
|
(setq-default
|
||||||
|
;; Tab vs space
|
||||||
|
indent-tabs-mode nil
|
||||||
|
tab-width 2
|
||||||
|
evil-shift-width 2
|
||||||
|
standard-indent 2
|
||||||
|
line-spacing 2
|
||||||
|
;; From @tecosaur
|
||||||
|
delete-by-moving-to-trash t
|
||||||
|
window-combination-resize t
|
||||||
|
x-stretch-cursor t)
|
||||||
|
(setq undo-limit 80000000
|
||||||
|
evil-want-fine-undo t
|
||||||
|
auto-save-default t
|
||||||
|
truncate-string-ellipsis "…")
|
||||||
|
(global-subword-mode 1) ;; Use CamelCase words
|
||||||
|
|
||||||
;; Font settings
|
;; Font settings
|
||||||
(setq doom-font (font-spec :family "Iosevka" :size 16)
|
(setq doom-font (font-spec :family "Iosevka" :size 16)
|
||||||
doom-serif-font (font-spec :family "Iosevka Slab" :size 16)
|
doom-serif-font (font-spec :family "Iosevka Slab" :size 16 :weight 'light)
|
||||||
doom-variable-pitch-font (font-spec :family "Iosevka Aile" :size 16)
|
doom-variable-pitch-font (font-spec :family "Iosevka Aile" :size 16)
|
||||||
doom-big-font (font-spec :family "Iosevka" :size 24))
|
doom-big-font (font-spec :family "Iosevka" :size 24))
|
||||||
(after! unicode-fonts
|
(after! unicode-fonts
|
||||||
@ -59,6 +77,12 @@
|
|||||||
(setq doom-modeline-major-mode-icon t
|
(setq doom-modeline-major-mode-icon t
|
||||||
doom-modeline-major-mode-color-icon t
|
doom-modeline-major-mode-color-icon t
|
||||||
doom-modeline-unicode-fallback t))
|
doom-modeline-unicode-fallback t))
|
||||||
|
(custom-set-faces!
|
||||||
|
'(doom-modeline-buffer-modified :foreground "orange"))
|
||||||
|
|
||||||
|
;; Window split position
|
||||||
|
(setq evil-vsplit-window-right t
|
||||||
|
evil-split-window-below t)
|
||||||
|
|
||||||
;; Emoji
|
;; Emoji
|
||||||
(after! emojify
|
(after! emojify
|
||||||
@ -95,12 +119,6 @@
|
|||||||
(setq +vc-gutter-default-style nil))
|
(setq +vc-gutter-default-style nil))
|
||||||
|
|
||||||
;; Indent
|
;; Indent
|
||||||
(setq-default
|
|
||||||
indent-tabs-mode nil
|
|
||||||
tab-width 2
|
|
||||||
evil-shift-width 2
|
|
||||||
standard-indent 2
|
|
||||||
line-spacing 2)
|
|
||||||
(after! highlight-indent-guides
|
(after! highlight-indent-guides
|
||||||
(setq highlight-indent-guides-method 'character
|
(setq highlight-indent-guides-method 'character
|
||||||
highlight-indent-guides-responsive t))
|
highlight-indent-guides-responsive t))
|
||||||
@ -119,6 +137,7 @@
|
|||||||
projectile-auto-discover nil))
|
projectile-auto-discover nil))
|
||||||
|
|
||||||
;; Ivy / Counsel
|
;; Ivy / Counsel
|
||||||
|
(setq +ivy-buffer-preview t)
|
||||||
(after! counsel
|
(after! counsel
|
||||||
(setq counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only))
|
(setq counsel-linux-app-format-function #'counsel-linux-app-format-function-name-only))
|
||||||
(map! "C-M-j" 'counsel-switch-buffer)
|
(map! "C-M-j" 'counsel-switch-buffer)
|
||||||
@ -134,6 +153,7 @@
|
|||||||
|
|
||||||
;; Company
|
;; Company
|
||||||
(after! company
|
(after! company
|
||||||
|
;;(add-hook 'evil-normal-state-entry-hook #'company-abort)
|
||||||
(setq company-idle-delay 0.5
|
(setq company-idle-delay 0.5
|
||||||
company-minimum-prefix-length 2
|
company-minimum-prefix-length 2
|
||||||
company-show-numbers nil))
|
company-show-numbers nil))
|
||||||
@ -292,6 +312,36 @@
|
|||||||
:config
|
:config
|
||||||
(setq tldr-directory-path "~/.local/share/tldr"))
|
(setq tldr-directory-path "~/.local/share/tldr"))
|
||||||
|
|
||||||
|
;; Keycast
|
||||||
|
(use-package! keycast
|
||||||
|
:commands keycast-mode
|
||||||
|
:config
|
||||||
|
(define-minor-mode keycast-mode
|
||||||
|
"Show current command and its key binding in the mode line."
|
||||||
|
:global t
|
||||||
|
(if keycast-mode
|
||||||
|
(progn
|
||||||
|
(add-hook 'pre-command-hook 'keycast--update t)
|
||||||
|
(add-to-list 'global-mode-string '("" mode-line-keycast " ")))
|
||||||
|
(remove-hook 'pre-command-hook 'keycast--update)
|
||||||
|
(setq global-mode-string (remove '("" mode-line-keycast " ") global-mode-string))))
|
||||||
|
(custom-set-faces!
|
||||||
|
'(keycast-command :inherit doom-modeline-debug
|
||||||
|
:height 0.9)
|
||||||
|
'(keycast-key :inherit custom-modified
|
||||||
|
:height 1.1
|
||||||
|
:weight bold)))
|
||||||
|
|
||||||
|
;; To read big files
|
||||||
|
(use-package! vlf-setup
|
||||||
|
:defer-incrementally vlf-tune vlf-base vlf-write vlf-search vlf-occur vlf-follow vlf-ediff vlf)
|
||||||
|
|
||||||
|
;; Nicer page break
|
||||||
|
(use-package! page-break-lines
|
||||||
|
:commands page-break-lines-mode
|
||||||
|
:init
|
||||||
|
(autoload 'turn-on-page-break-lines-mode "page-break-lines"))
|
||||||
|
|
||||||
;; Here are some additional functions/macros that could help you configure Doom:
|
;; Here are some additional functions/macros that could help you configure Doom:
|
||||||
;;
|
;;
|
||||||
;; - `load!' for loading external *.el files relative to this one
|
;; - `load!' for loading external *.el files relative to this one
|
||||||
|
@ -68,6 +68,11 @@
|
|||||||
(package! tldr)
|
(package! tldr)
|
||||||
(package! lice)
|
(package! lice)
|
||||||
(package! license-templates)
|
(package! license-templates)
|
||||||
|
(package! keycast)
|
||||||
|
(package! vlf)
|
||||||
|
(package! page-break-lines)
|
||||||
|
;;(package! ox-gfm)
|
||||||
|
;;(package! gif-screencase)
|
||||||
;;(package! magit-delta)
|
;;(package! magit-delta)
|
||||||
;;(package! sudoku)
|
;;(package! sudoku)
|
||||||
;;(package! mentor)
|
;;(package! mentor)
|
||||||
|
Loading…
Reference in New Issue
Block a user