From 9e98f831584c1991c8a2b8c1e392773e178b891e Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Sat, 20 Feb 2021 04:13:59 +0300 Subject: [PATCH] emacs: work around modeline cut off --- README.md | 2 +- home/.config/doom/config.el | 21 ++++++++++++--------- home/.config/doom/exwm.el | 1 + 3 files changed, 14 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index cf411d8..c8086c0 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ - **Shell prompt:** [starship](https://starship.rs/) - **Previewing things in the terminal:** [delta](https://github.com/dandavison/delta), [bat](https://github.com/sharkdp/bat), [glow](https://github.com/charmbracelet/glow) / [mdcat](https://github.com/lunaryorn/mdcat), [exa](https://github.com/ogham/exa), pandoc, tree, [csview](https://github.com/wfxr/csview), [libsixel](https://github.com/saitoha/libsixel) - **CLI/TUI tools for the Internet:** [gallery-dl](https://github.com/mikf/gallery-dl) / [mangadl-bash](https://github.com/Akianonymus/mangadl-bash), [translate-shell](https://github.com/soimort/translate-shell), [ddgr](https://github.com/jarun/ddgr), [buku](https://github.com/jarun/buku), [howdoi](https://github.com/gleitz/howdoi), [tuxi](https://github.com/Bugswriter/tuxi), [amfora](https://github.com/makeworld-the-better-one/amfora), [cointop](https://github.com/miguelmota/cointop), [newsboat](https://github.com/newsboat/newsboat), [youtube-dl](https://github.com/ytdl-org/youtube-dl), [github-cli](https://github.com/cli/cli), [pup](https://github.com/ericchiang/pup), [tmpsms](https://github.com/sdushantha/tmpsms), [tmpmail](https://github.com/sdushantha/tmpmail), [weechat](https://github.com/weechat/weechat), [curl](https://curl.haxx.se), [wget](https://www.gnu.org/software/wget/wget.html) - - **CLI/TUI tools for other things:** [farge](https://github.com/sdushantha/farge), [tt](https://github.com/runrin/tt), [forgit](https://github.com/wfxr/forgit), [borg](https://github.com/borgbackup/borg), [wendy](https://git.z3bra.org/wendy/log.html), [tokei](https://github.com/XAMPPRocky/tokei), [onefetch](https://github.com/o2sh/onefetch), [calcurse](https://github.com/lfos/calcurse), [qalculate](https://github.com/Qalculate/libqalculate), [fzf](https://github.com/junegunn/fzf), [fd](https://github.com/sharkdp/fd), [ripgrep](https://github.com/BurntSushi/ripgrep), [atool](http://www.nongnu.org/atool/), [rsync](https://rsync.samba.org/), [bottom](https://github.com/clementtsang/bottom) + - **CLI/TUI tools for other things:** [farge](https://github.com/sdushantha/farge), [tt](https://github.com/runrin/tt), [forgit](https://github.com/wfxr/forgit), [borg](https://github.com/borgbackup/borg), [wendy](https://git.z3bra.org/wendy/log.html), [tokei](https://github.com/XAMPPRocky/tokei), [onefetch](https://github.com/o2sh/onefetch), [calcurse](https://github.com/lfos/calcurse), [qalculate](https://github.com/Qalculate/libqalculate), [fzf](https://github.com/junegunn/fzf), [fd](https://github.com/sharkdp/fd), [ripgrep](https://github.com/BurntSushi/ripgrep), [atool](http://www.nongnu.org/atool/), [rsync](https://rsync.samba.org/), [bottom](https://github.com/clementtsang/bottom), [hyperfine](https://github.com/sharkdp/hyperfine) > zsh requires adding `export ZDOTDIR=$HOME/.config/zsh` to **/etc/zsh/zshenv** diff --git a/home/.config/doom/config.el b/home/.config/doom/config.el index 1eb9be3..a008067 100644 --- a/home/.config/doom/config.el +++ b/home/.config/doom/config.el @@ -7,13 +7,19 @@ ;; Font settings (setq doom-font (font-spec :family "Iosevka Nerd Font" :size 16) doom-variable-pitch-font (font-spec :family "sans" :size 16) - doom-big-font (font-spec :family "Iosevka Nerd Font" :size 24) - doom-unicode-font (font-spec :family "Symbola" :size 14)) -(custom-set-faces! - '(font-lock-comment-face :slant italic)) - -;; Might speedup all-the-icons + doom-big-font (font-spec :family "Iosevka Nerd Font" :size 24)) ;;(setq inhibit-compacting-font-caches t) +(custom-set-faces! + '(font-lock-comment-face :slant italic) + '(font-lock-keyword-face :weight bold)) + +;; Work around modeline cut off. See hlissner/doom-emacs#2967 +(setq all-the-icons-scale-factor 1.1) +(after! doom-modeline + (custom-set-faces! + '(mode-line :height 0.97) + '(mode-line-inactive :height 0.97)) + (setq doom-modeline-unicode-fallback t)) ;; Emoji (after! emojify @@ -41,9 +47,6 @@ doom-dashboard-widget-shortmenu doom-dashboard-widget-loaded)) -;; Modeline -(setq doom-modeline-unicode-fallback t) - ;; Line number (setq display-line-numbers-type 'relative) diff --git a/home/.config/doom/exwm.el b/home/.config/doom/exwm.el index 0cd2d87..8c0a592 100644 --- a/home/.config/doom/exwm.el +++ b/home/.config/doom/exwm.el @@ -27,6 +27,7 @@ (follie/run-in-background "dunst") (follie/run-in-background "mpDris2") (start-process-shell-command "xsetroot" nil "xsetroot -cursor_name left_ptr")) + (follie/run-in-background "greenclip daemon") (defun follie/configure-window-by-class () (interactive)