diff --git a/emacs/.config/doom/+ui.el b/emacs/.config/doom/+ui.el index 77568f5..b97e6f6 100644 --- a/emacs/.config/doom/+ui.el +++ b/emacs/.config/doom/+ui.el @@ -3,8 +3,8 @@ (setq doom-theme 'kaolin-valley-dark) ;; Fonts -(setq doom-font (font-spec :family "Go Mono" :size 10)) -(setq doom-big-font (font-spec :family "Go Mono" :size 16)) +(setq doom-font (font-spec :family "Go Mono" :size 12)) +(setq doom-big-font (font-spec :family "Go Mono" :size 18)) (set-frame-parameter nil 'internal-border-width 20) ; applies to the current frame ;; or diff --git a/emacs/.config/doom/config.el b/emacs/.config/doom/config.el index 9c4e1e3..2badac0 100644 --- a/emacs/.config/doom/config.el +++ b/emacs/.config/doom/config.el @@ -159,3 +159,20 @@ (load! "beancount") (require 'beancount) (add-to-list 'auto-mode-alist '("\\.beancount\\'" . beancount-mode)) + +(define-derived-mode + pandoc-view-mode + markdown-mode + "pandoc-view-mode" + "View pandoc processing of docx file using markdown mode." + (erase-buffer) + (let* ((pandoc (executable-find "pandoc"))) + (insert (shell-command-to-string + (concat pandoc " --wrap=none " (shell-quote-argument (buffer-file-name)) " -t markdown")))) + (not-modified) + (read-only-mode t)) + +(add-to-list 'auto-mode-alist '("\\.docx\\'" . pandoc-view-mode)) + +(remove-hook 'text-mode-hook #'auto-fill-mode) +(add-hook 'message-mode-hook #'word-wrap-mode) diff --git a/i3/.config/i3/config b/i3/.config/i3/config index 7cf51eb..131b999 100644 --- a/i3/.config/i3/config +++ b/i3/.config/i3/config @@ -36,8 +36,8 @@ for_window [class="st"] border pixel $thick for_window [class="Foliate"] floating enable for_window [class="Foliate"] floating_maximum_size 400 x 800 -for_window [class="surf"] floating enable -for_window [class="surf"] floating_maximum_size 400 x 800 +for_window [class="Surf"] floating enable +for_window [class="Surf"] floating_maximum_size 200 x 350 # GAP VARIABLES set $inner 12