From f4853bdbc598ec05f9e37689b5d5af6ad1fc1e9b Mon Sep 17 00:00:00 2001 From: depsterr Date: Fri, 2 Dec 2022 01:22:04 +0100 Subject: [PATCH] made exwm quite usable, almost cozy even --- binds.el | 4 ---- exwm.el | 5 +++++ init.el | 7 +++++++ 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/binds.el b/binds.el index 7668ce9..04c978e 100644 --- a/binds.el +++ b/binds.el @@ -27,10 +27,6 @@ (set-input-method "Agda")))) (add-hook 'evil-insert-state-exit-hook (lambda () (set-input-method nil))) -;; No evil in certain modes -(add-hook 'vterm-mode-hook 'turn-off-evil-mode) -(add-hook 'zotero-browser-mode-hook 'turn-off-evil-mode) - ;; Windowing (define-prefix-command 'create-windows) (global-set-key (kbd "C-a") 'create-windows) diff --git a/exwm.el b/exwm.el index 65f35b9..717157d 100644 --- a/exwm.el +++ b/exwm.el @@ -16,6 +16,10 @@ (interactive) (start-process "firefox" nil "firefox")) +(defun rofi () + (interactive) + (start-process "rofi" nil "rofi" "-show" "run")) + (setq exwm-input-global-keys `((,(kbd "s-E") . exwm-exit) (,(kbd "s-Q") . evil-quit) @@ -35,6 +39,7 @@ ;; Applications (,(kbd "s-") . firefox) (,(kbd "s-") . vterm) + (,(kbd "s-d") . rofi) ;; Workspaces ,@(mapcar (lambda (i) diff --git a/init.el b/init.el index cdb7542..ec0479b 100644 --- a/init.el +++ b/init.el @@ -113,9 +113,16 @@ '(display-time-interval 15) '(display-time-mode t) '(evil-undo-system 'undo-tree) + '(image-converter 'imagemagick) + '(image-file-name-extensions + '("png" "jpeg" "jpg" "gif" "tiff" "tif" "xbm" "xpm" "pbm" "pgm" "ppm" "pnm" "svg" "ora")) + '(image-use-external-converter t) + '(imagemagick-enabled-types + '(3FR ARW AVS BMP BMP2 BMP3 CAL CALS CMYK CMYKA CR2 CRW CUR CUT DCM DCR DCX DDS DJVU DNG DPX EXR FAX FITS GBR GIF GIF87 GRB HRZ ICB ICO ICON J2C JNG JP2 JPC JPEG JPG JPX K25 KDC MIFF MNG MRW MSL MSVG MTV NEF ORF OTB PBM PCD PCDS PCL PCT PCX PDB PEF PGM PICT PIX PJPEG PNG PNG24 PNG32 PNG8 PNM PPM PSD PTIF PWP RAF RAS RBG RGB RGBA RGBO RLA RLE SCR SCT SFW SGI SR2 SRF SUN SVG SVGZ TGA TIFF TIFF64 TILE TIM TTF UYVY VDA VICAR VID VIFF VST WBMP WPG X3F XBM XC XCF XPM XV XWD YCbCr YCbCrA YUV ORA)) '(org-agenda-files '("/home/deppy/doc/org/todo.org")) '(package-selected-packages '(edwina markdown-preview-mode markdown-mode exwm 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)) + '(shell-file-name "/bin/bash") '(warning-suppress-log-types '((comp))) '(warning-suppress-types '((comp))) '(writeroom-mode-line t)