\f
;;; Initial setup
+(defvar b/exwm-p (string= (system-name) "jirud")
+ "Whether or not we will be using `exwm'.")
+
;; keep ~/.emacs.d clean
(use-package no-littering
:demand
;; time and battery in mode-line
(use-feature time
- :disabled
+ :if b/exwm-p
:demand
:config
(display-time-mode)
(display-time-format "%a %b %-e, %-l:%M%P"))
(use-feature battery
- :disabled
+ :if b/exwm-p
:demand
:config
(display-battery-mode)
;;; Essential packages
(use-package exwm
- :disabled
+ :if b/exwm-p
:demand
:config
;; make class name the buffer name, truncating beyond 60 characters
:config
(exwm-randr-enable)
:custom
- (exwm-randr-workspace-monitor-plist '(1 "VGA-1"))
- :hook
- (exwm-randr-screen-change . (lambda ()
- (let ((xrandr
- (string-join
- '("xrandr"
- "--output VGA-1"
- "--same-as LVDS-1"
- "--auto")
- " ")))
- (start-process-shell-command
- "xrandr" nil xrandr)))))
+ (exwm-randr-workspace-monitor-plist '(1 "VGA-1")))
(use-feature exwm-systemtray
:demand
(load-theme 'tangomod t)
(use-package smart-mode-line
- :disabled
:commands (sml/apply-theme)
:demand
:config
+ (setq sml/theme 'tangomod)
(sml/setup)
(smart-mode-line-enable))
(load-theme 'solarized-light t))
(use-package moody
+ :disabled
:demand
:config
(setq x-underline-at-descent-line t)
(moody-replace-mode-line-buffer-identification)
(moody-replace-vc-mode))
+(use-package mini-modeline
+ :disabled
+ :demand
+ :config (mini-modeline-mode))
+
(defvar b/org-mode-font-lock-keywords
'(("[ \t]*\\(#\\+\\(BEGIN\\|END\\|begin\\|end\\)_\\(\\S-+\\)\\)[ \t]*\\([^\n:]*\\)"
(1 '(:foreground "#5a5b5a" :background "#292b2b") t) ; directive
(interactive)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'tangomod t)
- ;; (sml/apply-theme 'automatic)
+ (sml/apply-theme 'tangomod)
(font-lock-remove-keywords
- 'org-mode b/org-mode-font-lock-keywords))
+ 'org-mode b/org-mode-font-lock-keywords)
+ (when (featurep 'exwm-systemtray)
+ (exwm-systemtray--refresh)))
(defun b/lights-off ()
"Go dark."
(interactive)
(mapc #'disable-theme custom-enabled-themes)
(load-theme 'doom-one t)
- ;; (sml/apply-theme 'automatic)
+ (sml/apply-theme 'automatic)
(font-lock-add-keywords
- 'org-mode b/org-mode-font-lock-keywords t))
+ 'org-mode b/org-mode-font-lock-keywords t)
+ (when (featurep 'exwm-systemtray)
+ (exwm-systemtray--refresh)))
(bind-keys
("C-c t d" . b/lights-off)
("<C-XF86Forward>" . pdf-history-forward)
("<mouse-9>" . pdf-history-forward)
("<drag-mouse-9>" . pdf-history-forward)
- ("M-RET" . image-previous-line))
+ ("M-RET" . image-previous-line)
+ ("C-s" . isearch-forward)
+ ("s s" . isearch-forward))
:config (pdf-tools-install nil t)
:custom (pdf-view-resize-factor 1.05))