summaryrefslogtreecommitdiffstats
path: root/.emacs.d/init.el
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2019-05-11 20:44:14 -0400
committerAmin Bandali <bandali@gnu.org>2019-05-11 20:44:14 -0400
commit96c704d752b0904e1150178ac55db7abe338a38c (patch)
tree1676b01af936bc36448aeb644083ec540a300cc2 /.emacs.d/init.el
parent840b56cae3c2610b13b74a722ae5db372cac43d2 (diff)
downloadconfigs-96c704d752b0904e1150178ac55db7abe338a38c.tar.gz
configs-96c704d752b0904e1150178ac55db7abe338a38c.tar.xz
configs-96c704d752b0904e1150178ac55db7abe338a38c.zip
emacs: set screen’s config file explicitly for multi-term
Not sure why (getenv "SCREENRC") evaluates to "/screen/screenrc" only and the $XDG_CONFIG_HOME prefix of it is missing. Don’t have time to investigate.
Diffstat (limited to '')
-rw-r--r--.emacs.d/init.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/.emacs.d/init.el b/.emacs.d/init.el
index c2b20ba..49df725 100644
--- a/.emacs.d/init.el
+++ b/.emacs.d/init.el
@@ -216,7 +216,6 @@
(exec-path-from-shell-copy-env "SSH_AGENT_PID")
(exec-path-from-shell-copy-env "SSH_AUTH_SOCK"))
-
;; only one custom theme at a time
(comment
(defadvice load-theme (before clear-previous-themes activate)
@@ -1375,7 +1374,10 @@ For disabling the behaviour for certain buffers and/or modes."
:map term-raw-map
("C-c C-j" . term-line-mode))
:config
- (setq multi-term-program "/bin/screen"
+ (setq multi-term-program "screen"
+ multi-term-program-switches (concat "-c"
+ (getenv "XDG_CONFIG_HOME")
+ "/screen/screenrc")
;; TODO: add separate bindings for connecting to existing
;; session vs. always creating a new one
multi-term-dedicated-select-after-open-p t