aboutsummaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'init.el')
-rw-r--r--init.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/init.el b/init.el
index 2a4e17c..98a72dd 100644
--- a/init.el
+++ b/init.el
@@ -45,7 +45,8 @@
(windmove-default-keybindings 'control) ; You can use other modifiers here
;; Make right-click do something sensible
-(context-menu-mode)
+(when (display-graphic-p)
+ (context-menu-mode))
;; Don't litter filesystem with *~ backup files; put them all inside
;; ~/.emacs.d/backup or wherever