summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <mab@gnu.org>2019-07-04 13:03:47 -0400
committerAmin Bandali <mab@gnu.org>2019-07-04 13:03:47 -0400
commitf704f5649ad9a9d2759def5630c19b54f5226e51 (patch)
tree50bf930c409389e0db5a13f9d201434ac7314837
parent7e1cad0634ec25e36043dfba0cb1da2772a23e87 (diff)
downloadconfigs-f704f5649ad9a9d2759def5630c19b54f5226e51.tar.gz
configs-f704f5649ad9a9d2759def5630c19b54f5226e51.tar.xz
configs-f704f5649ad9a9d2759def5630c19b54f5226e51.zip
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
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el4
-rw-r--r--.emacs.d/straight/versions/default.el1
2 files changed, 5 insertions, 0 deletions
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")