From: Amin Bandali Date: Thu, 4 Jul 2019 17:03:47 +0000 (-0400) Subject: emacs: add po-mode, with a hack to exit view-mode X-Git-Url: https://git.shemshak.org/gitweb.cgi/~bandali/configs/commitdiff_plain/f704f5649ad9a9d2759def5630c19b54f5226e51 emacs: add po-mode, with a hack to exit view-mode (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 --- 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 diff --git a/.emacs.d/straight/versions/default.el b/.emacs.d/straight/versions/default.el index af4b551..82853b9 100644 --- a/.emacs.d/straight/versions/default.el +++ b/.emacs.d/straight/versions/default.el @@ -81,6 +81,7 @@ ("pdf-tools" . "db7de3901ae0e55f6ab8cf9baec257f706c3d16e") ("pinentry" . "cd942f755c38a7ac270ce858bb887ebdd59edd26") ("pkg-info.el" . "76ba7415480687d05a4353b27fea2ae02b8d9d61") + ("po-mode" . "1916142f6a817c733d5ec37e3b4fbae3da67e499") ("popup-el" . "80829dd46381754639fb764da11c67235fe63282") ("projectile" . "71a01f409a319d57eb3832e93e8a412fbc9d7a65") ("rich-minority" . "a03e693f6f9232cf75363aaaf1cb041f21675c19")