start of exwm stuff, slight fixes

This commit is contained in:
Rachel Lambda Samuelsson 2022-11-25 01:20:50 +01:00
parent f49cdbd9cd
commit 32cb916cf5
4 changed files with 30 additions and 1 deletions

1
.gitignore vendored
View File

@ -12,3 +12,4 @@ network-security.data
secrets.el
*~
\#*\#
ido.last

View File

@ -7,5 +7,12 @@
(if (equal (buffer-name) "*dashboard*") nil (kill-buffer))
(evil-window-delete)))
;; Treemacs directory expansion
(with-eval-after-load 'treemacs
(define-key treemacs-mode-map [mouse-1] #'treemacs-single-click-expand-action))
;; Save backup files to a single dir
(setq backup-directory-alist
`((".*" . ,temporary-file-directory)))
(setq auto-save-file-name-transforms
`((".*" ,temporary-file-directory t)))

15
exwm.el Normal file
View File

@ -0,0 +1,15 @@
(require 'exwm)
(require 'exwm-config)
(display-battery-mode)
(defun discord ()
(interactive)
(start-process "discord" nil "discord"))
;; TODO: if running, switch focus, otherwise start
(defun firefox ()
(interactive)
(start-process "firefox" nil "firefox"))
(exwm-config-example)

View File

@ -23,6 +23,12 @@
;; Behaviour
(include "behaviour.el")
;; Emacs server
(server-start)
;; Exwm
(include "exwm.el")
;; Don't touch
(custom-set-variables
;; custom-set-variables was added by Custom.
@ -36,7 +42,7 @@
'(evil-undo-system 'undo-tree)
'(org-agenda-files '("/home/deppy/doc/org/todo.org"))
'(package-selected-packages
'(elcord org-krita org-superstar org-fragtog org-pretty-tags visual-fill writeroom-mode haskell-emacs treemacs-evil treemacs solarized-theme doom-modeline all-the-icons-dired page-break-lines all-the-icons dashboard org-evil zotero vterm magit undo-fu latex-math-preview multi-term evil-terminal-cursor-changer fira-code-mode use-package haskell-mode evil-surround undo-tree evil-org evil))
'(exwm elcord org-superstar org-fragtog org-pretty-tags visual-fill writeroom-mode haskell-emacs treemacs-evil treemacs solarized-theme doom-modeline all-the-icons-dired page-break-lines all-the-icons dashboard org-evil zotero vterm magit undo-fu latex-math-preview use-package haskell-mode evil-surround undo-tree evil-org evil))
'(warning-suppress-log-types '((comp)))
'(warning-suppress-types '((comp)))
'(writeroom-mode-line t)