projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
268e91f
)
emacs - set cursor color only for graphic mode
author
Peng Li
<seudut@gmail.com>
Sat, 5 Nov 2016 17:38:54 +0000
(
01:38
+0800)
committer
Peng Li
<seudut@gmail.com>
Sat, 5 Nov 2016 17:38:54 +0000
(
01:38
+0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
bd6cf01
..
fb86b1d
100644
(file)
--- a/
emacs.d/config.org
+++ b/
emacs.d/config.org
@@
-406,7
+406,8
@@
Enable rainbow mode in emacs lisp mode
** cusor color
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
** cusor color
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
- (set-cursor-color 'red)
+ (if (display-graphic-p)
+ (set-cursor-color 'red))
#+END_SRC
* Mode-line
#+END_SRC
* Mode-line
@@
-3413,3
+3414,7
@@
search music on some music web site
** Need separate the Key-bindings and package-initialization
** Need separate the Key-bindings and package-initialization
+
+** Check if emacs is in terminal of graphic mode
+Use =display-graphic-p= instead of =window-system=
+[[info:elisp#Window%20Systems][Window Systems]]