From 03fe06eabd97c85a7c837cd9e12b5080a741f0d2 Mon Sep 17 00:00:00 2001 From: FollieHiyuki Date: Tue, 16 Feb 2021 20:04:27 +0300 Subject: [PATCH] emacs: rearrange config --- home/.config/doom/config.el | 17 +++++++++++++---- home/.config/doom/exwm.el | 6 +++--- home/.config/doom/init.el | 6 +++--- home/.config/doom/packages.el | 2 +- 4 files changed, 20 insertions(+), 11 deletions(-) diff --git a/home/.config/doom/config.el b/home/.config/doom/config.el index ab26330..2a2e3a3 100644 --- a/home/.config/doom/config.el +++ b/home/.config/doom/config.el @@ -13,7 +13,7 @@ '(font-lock-comment-face :slant italic)) ;; Might speedup all-the-icons -(setq inhibit-compacting-font-caches t) +;;(setq inhibit-compacting-font-caches t) ;; Emoji (after! emojify @@ -41,6 +41,9 @@ doom-dashboard-widget-shortmenu doom-dashboard-widget-loaded)) +;; Modeline +(setq doom-modeline-unicode-fallback t) + ;; Line number (setq display-line-numbers-type 'relative) @@ -109,6 +112,7 @@ ;;(emms-all) ;;(emms-default-players) ;;(emms-playing-time 1) +;;(emms-mode-line 1) ;;(setq emms-source-file-default-directory "~/Music/" ;; emms-info-asynchronously 1 ;; emms-playlist-buffer-name "*Music*" @@ -138,9 +142,14 @@ ;; :desc "Emms next track" ;; "e n" #'emms-next) -;; Modeline -;;(emms-mode-line 1) -(setq doom-modeline-unicode-fallback t) +;; Asynchronous bytecode compilation +(use-package! async + :ensure t + :defer t + :init + (dired-async-mode 1) + (async-bytecomp-package-mode 1) + :custom (async-bytecomp-allowed-packages '(all))) ;; Here are some additional functions/macros that could help you configure Doom: ;; diff --git a/home/.config/doom/exwm.el b/home/.config/doom/exwm.el index a1f2af8..7c25aef 100644 --- a/home/.config/doom/exwm.el +++ b/home/.config/doom/exwm.el @@ -67,7 +67,7 @@ You can find the original one at `exwm-config-ido-buffer-window-other-frame'." (interactive) (pcase exwm-class-name ("Komikku" (exwm-floating-toggle-floating) - (exwm-layout-toggle-mode-line)))) + (exwm-layout-hide-mode-line)))) (defun follie/update-displays () (lambda () @@ -78,7 +78,7 @@ You can find the original one at `exwm-config-ido-buffer-window-other-frame'." (use-package! exwm :config ;; Number of workspaces - (setq exwm-workspace-number 2) + (setq exwm-workspace-number 6) ;; Extra stuff at startup (add-hook 'exwm-init-hook #'follie/exwm-init-hook) @@ -107,7 +107,7 @@ You can find the original one at `exwm-config-ido-buffer-window-other-frame'." ;; System tray on minibuffer (require 'exwm-systemtray) - (setq exwm-systemtray-height 12) + (setq exwm-systemtray-height 20) (exwm-systemtray-enable) ;; Automatically send cursor to the selected display diff --git a/home/.config/doom/init.el b/home/.config/doom/init.el index 6472196..a5bc34e 100644 --- a/home/.config/doom/init.el +++ b/home/.config/doom/init.el @@ -51,7 +51,7 @@ (popup ; tame sudden yet inevitable temporary windows +all +defaults) - tabs ; a tab bar for Emacs + ;;tabs ; a tab bar for Emacs treemacs ; a project drawer, like neotree but cooler unicode ; extended unicode support for various languages vc-gutter ; vcs diff in the fringe @@ -80,7 +80,7 @@ +icons) electric ; smarter, keyword-based electric-indent (ibuffer +icons) ; interactive buffer management - (undo +tree) ; persistent, smarter undo for your inevitable mistakes + undo ; persistent, smarter undo for your inevitable mistakes vc ; version-control and Emacs, sitting in a tree :term @@ -185,7 +185,7 @@ ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;scala ; java, but good ;;scheme ; a fully conniving family of lisps - sh ; she sells {ba,z,fi}sh shells on the C xor + (sh +fish) ; she sells {ba,z,fi}sh shells on the C xor ;;sml ;;solidity ; do you need a blockchain? No. ;;swift ; who asked for emoji variables? diff --git a/home/.config/doom/packages.el b/home/.config/doom/packages.el index e4f6869..84b04b9 100644 --- a/home/.config/doom/packages.el +++ b/home/.config/doom/packages.el @@ -56,8 +56,8 @@ ;; Syntax (package! vimrc-mode) -(package! fish-mode) ;; Improvements +(package! async) (package! magit-delta) ;; (package! mixed-pitch)