From f704f5649ad9a9d2759def5630c19b54f5226e51 Mon Sep 17 00:00:00 2001 From: Amin Bandali Date: Thu, 4 Jul 2019 13:03:47 -0400 Subject: emacs: add po-mode, with a hack to exit view-mode MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (entered because po-mode marks the buffer as read-only, and that i have (setq view-read-only t)) not sure why a regular :hook (po-mode . View-exit) doesn’t do it --- .emacs.d/init.el | 4 ++++ 1 file changed, 4 insertions(+) (limited to '.emacs.d/init.el') diff --git a/.emacs.d/init.el b/.emacs.d/init.el index 30f9ecc..920b018 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -1225,6 +1225,10 @@ For disabling the behaviour for certain buffers and/or modes." (use-package go-mode) +(use-package po-mode + :hook + (po-mode . (lambda () (run-with-timer 0.1 nil 'View-exit)))) + ;;; Theme -- cgit v1.2.3-60-g2f50