summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2023-07-08 12:58:49 +0100
committerYann Herklotz <git@yannherklotz.com>2023-07-08 13:00:56 +0100
commit219d2a34e0989d85263240fef296aa9e5fa6b18d (patch)
tree7f1e7473106991609332c1fdc3918c4604d3b525
parent4bb0a34d18a7bb49de504b81c8a2c7fa5df219dd (diff)
downloadymh-emacs-219d2a34e0989d85263240fef296aa9e5fa6b18d.tar.gz
ymh-emacs-219d2a34e0989d85263240fef296aa9e5fa6b18d.zip
Tweaks to latex mode
-rw-r--r--init.el35
1 files changed, 24 insertions, 11 deletions
diff --git a/init.el b/init.el
index 57e78ca..4827bf9 100644
--- a/init.el
+++ b/init.el
@@ -129,6 +129,8 @@ Should be one of `:white-split', `:modified' or `:default'")
;; This is the main configuration block for vanilla emacs.
(use-package emacs
+ :custom
+ (blink-matching-paren nil)
:init
;; Remove any warnings from the async compilation. This was bothersome
;; because it would make the warning buffer appear whenever there were any.
@@ -247,9 +249,14 @@ Should be one of `:white-split', `:modified' or `:default'")
downcase-region))
(put c 'disabled nil))
- (set-face-attribute 'default nil :family "Iosevka YMHG" :weight 'semi-bold)
- (set-face-attribute 'variable-pitch nil :family "Iosevka YMHG" :weight 'semi-bold)
- (set-face-attribute 'fixed-pitch nil :family "Iosevka YMHG" :weight 'semi-bold)
+ (if ymh/macos-p
+ (progn
+ (set-face-attribute 'default nil :family "Iosevka YMHG" :weight 'semi-bold :height 140)
+ (set-face-attribute 'variable-pitch nil :family "Iosevka YMHG" :weight 'semi-bold :height 140)
+ (set-face-attribute 'fixed-pitch nil :family "Iosevka YMHG" :weight 'semi-bold :height 140))
+ (set-face-attribute 'default nil :family "Iosevka YMHG" :weight 'semi-bold)
+ (set-face-attribute 'variable-pitch nil :family "Iosevka YMHG" :weight 'semi-bold)
+ (set-face-attribute 'fixed-pitch nil :family "Iosevka YMHG" :weight 'semi-bold))
(add-to-list 'mode-line-misc-info
'(t ("[t:" (:eval (alist-get 'name (tab-bar--current-tab))) "] ")))
@@ -443,12 +450,12 @@ https://yannherklotz.com"))
(appt-warning-time-regexp "appt \\([0-9]+\\)")
(appt-message-warning-time 15)
:config
- (defun ymh/org-agenda-to-appt ()
- (org-agenda-to-appt t '((category "meeting")))
- (appt-check))
- (appt-activate t)
- (ymh/org-agenda-to-appt)
- (run-at-time "00:01" nil #'ymh/org-agenda-to-appt)
+;; (defun ymh/org-agenda-to-appt ()
+;; (org-agenda-to-appt t '((category "meeting")))
+;; (appt-check))
+;; (appt-activate t)
+;; (ymh/org-agenda-to-appt)
+;; (run-at-time "00:01" nil #'ymh/org-agenda-to-appt)
;; (setq appt-disp-window-function (function my-appt-disp-window))
;;(defun my-appt-disp-window (min-to-app new-time msg)
;; (save-window-excursion (shell-command (concat
@@ -1017,13 +1024,18 @@ https://yannherklotz.com"))
(add-hook 'TeX-mode-hook #'outline-minor-mode)
(add-hook 'LaTeX-mode-hook
(lambda ()
- (setq reftex-ref-style-default-list '("Default" "Cleveref"))))
+ (setq reftex-ref-style-default-list '("Default" "Cleveref"))
+ (define-key LaTeX-mode-map (kbd "$") 'self-insert-command)))
+
;;(with-eval-after-load 'latex
;; (define-key LaTeX-mode-map
;; " "
;; #'ymh/electric-space))
)
+(use-package outline
+ :bind-keymap ("C-c C-'" . outline-mode-prefix-map))
+
(use-package ox-hugo
:ensure t)
@@ -1130,7 +1142,8 @@ https://yannherklotz.com"))
("https://sbseminar.wordpress.com/feed/" blog math)
("https://krystalguo.com/?feed=rss2" blog math)
("https://scottaaronson.blog/?feed=rss2" blog math)
- ("https://hnrss.org/frontpage" news)))
+ ("https://hnrss.org/frontpage" news)
+ ("https://lawrencecpaulson.github.io/feed" blog math logic)))
:init
(setq-default elfeed-search-filter "@1-month-ago +unread "))