emacs: rearrange config

This commit is contained in:
FollieHiyuki 2021-02-16 20:04:27 +03:00
parent fe71bd1a49
commit 03fe06eabd
No known key found for this signature in database
GPG Key ID: 813CF484F4993419
4 changed files with 20 additions and 11 deletions

View File

@ -13,7 +13,7 @@
'(font-lock-comment-face :slant italic)) '(font-lock-comment-face :slant italic))
;; Might speedup all-the-icons ;; Might speedup all-the-icons
(setq inhibit-compacting-font-caches t) ;;(setq inhibit-compacting-font-caches t)
;; Emoji ;; Emoji
(after! emojify (after! emojify
@ -41,6 +41,9 @@
doom-dashboard-widget-shortmenu doom-dashboard-widget-shortmenu
doom-dashboard-widget-loaded)) doom-dashboard-widget-loaded))
;; Modeline
(setq doom-modeline-unicode-fallback t)
;; Line number ;; Line number
(setq display-line-numbers-type 'relative) (setq display-line-numbers-type 'relative)
@ -109,6 +112,7 @@
;;(emms-all) ;;(emms-all)
;;(emms-default-players) ;;(emms-default-players)
;;(emms-playing-time 1) ;;(emms-playing-time 1)
;;(emms-mode-line 1)
;;(setq emms-source-file-default-directory "~/Music/" ;;(setq emms-source-file-default-directory "~/Music/"
;; emms-info-asynchronously 1 ;; emms-info-asynchronously 1
;; emms-playlist-buffer-name "*Music*" ;; emms-playlist-buffer-name "*Music*"
@ -138,9 +142,14 @@
;; :desc "Emms next track" ;; :desc "Emms next track"
;; "e n" #'emms-next) ;; "e n" #'emms-next)
;; Modeline ;; Asynchronous bytecode compilation
;;(emms-mode-line 1) (use-package! async
(setq doom-modeline-unicode-fallback t) :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: ;; Here are some additional functions/macros that could help you configure Doom:
;; ;;

View File

@ -67,7 +67,7 @@ You can find the original one at `exwm-config-ido-buffer-window-other-frame'."
(interactive) (interactive)
(pcase exwm-class-name (pcase exwm-class-name
("Komikku" (exwm-floating-toggle-floating) ("Komikku" (exwm-floating-toggle-floating)
(exwm-layout-toggle-mode-line)))) (exwm-layout-hide-mode-line))))
(defun follie/update-displays () (defun follie/update-displays ()
(lambda () (lambda ()
@ -78,7 +78,7 @@ You can find the original one at `exwm-config-ido-buffer-window-other-frame'."
(use-package! exwm (use-package! exwm
:config :config
;; Number of workspaces ;; Number of workspaces
(setq exwm-workspace-number 2) (setq exwm-workspace-number 6)
;; Extra stuff at startup ;; Extra stuff at startup
(add-hook 'exwm-init-hook #'follie/exwm-init-hook) (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 ;; System tray on minibuffer
(require 'exwm-systemtray) (require 'exwm-systemtray)
(setq exwm-systemtray-height 12) (setq exwm-systemtray-height 20)
(exwm-systemtray-enable) (exwm-systemtray-enable)
;; Automatically send cursor to the selected display ;; Automatically send cursor to the selected display

View File

@ -51,7 +51,7 @@
(popup ; tame sudden yet inevitable temporary windows (popup ; tame sudden yet inevitable temporary windows
+all +all
+defaults) +defaults)
tabs ; a tab bar for Emacs ;;tabs ; a tab bar for Emacs
treemacs ; a project drawer, like neotree but cooler treemacs ; a project drawer, like neotree but cooler
unicode ; extended unicode support for various languages unicode ; extended unicode support for various languages
vc-gutter ; vcs diff in the fringe vc-gutter ; vcs diff in the fringe
@ -80,7 +80,7 @@
+icons) +icons)
electric ; smarter, keyword-based electric-indent electric ; smarter, keyword-based electric-indent
(ibuffer +icons) ; interactive buffer management (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 vc ; version-control and Emacs, sitting in a tree
:term :term
@ -185,7 +185,7 @@
;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap() ;;rust ; Fe2O3.unwrap().unwrap().unwrap().unwrap()
;;scala ; java, but good ;;scala ; java, but good
;;scheme ; a fully conniving family of lisps ;;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 ;;sml
;;solidity ; do you need a blockchain? No. ;;solidity ; do you need a blockchain? No.
;;swift ; who asked for emoji variables? ;;swift ; who asked for emoji variables?

View File

@ -56,8 +56,8 @@
;; Syntax ;; Syntax
(package! vimrc-mode) (package! vimrc-mode)
(package! fish-mode)
;; Improvements ;; Improvements
(package! async)
(package! magit-delta) (package! magit-delta)
;; (package! mixed-pitch) ;; (package! mixed-pitch)