Selaa lähdekoodia

Increase default font size for emacs

Colin Powell 5 vuotta sitten
vanhempi
commit
e3da570fdf
3 muutettua tiedostoa jossa 21 lisäystä ja 4 poistoa
  1. 2 2
      emacs/.config/doom/+ui.el
  2. 17 0
      emacs/.config/doom/config.el
  3. 2 2
      i3/.config/i3/config

+ 2 - 2
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

+ 17 - 0
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)

+ 2 - 2
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