Emacs change cursor color from command line
- #Emacs change cursor color from command line manual#
- #Emacs change cursor color from command line code#
Inserting space around none-English characters triggers the region (twoĬonsecutive spaces for inline other language region).Ĭ.Inline region ( inline english as an example): Support inline English and inline other language region.Respect buffer/mode by proper input source:.Automatically change cursor color according to current input source.Support GUI Emacs, as well as Terminal Emacs.Ease the use of Emacs-native input source, for further compatibility.Ease the use of OS-native input source, no need to change use experience.A global mode: sis-global-cursor-color-mode to automaticallyĬhange cursor color according to current input source.Sis-global-inline-mode to enable the mode for all buffers. Language and then back to original input source without switching input A buffer local mode: sis-inline-mode to enable theĪutomatically triggering of a temporary overlay to input English/other.Indicates when entering evil insert mode. When to switch input source by followingĬontext can be configured easily by a variable, whose default value It also has a global version sis-global-context-mode A buffer local mode: sis-context-mode to switch input source smartedĪccording to context.Respect buffer: recover buffer input source when it regain focus.Respect prefix key: switch to English for C-c / C-x / C-h and more.Respect minibuffer: switch to English when enter minibuffer.Respect evil: switch to English when leaving evil insert mode.
Respect start: start Emacs with specified language.A global mode: sis-global-respect-mode to respect buffer/mode.
#Emacs change cursor color from command line manual#
I think this is fundamentally an evil issue, and maybe worth reporting there, but I think it's possible this is something they can't really fix because fundamental-mode buffers behave differently, especially with regards to hooks, so I think CIDER can also be a bit more conservative in calling fundamental-mode, thus preventing the issue.Sis (smart input source) enables less manual switch for native or OS input In this case it thinks a new buffer is being initialized to fundamental-mode, and this buffer is in normal state, so it updates the cursor. Evil detects buffer changes and updates the cursor in accordance. (with-current-buffer (get-buffer-create " *nrepl-decoding*")įundamentally the issue stems from the fact that a cursor color can't really be set on a buffer, it has to be set on the entire frame.
#Emacs change cursor color from command line code#
The code that triggers it is: (defun nrepl-bdecode (string-q &optional response-q) Nrepl-send-sync-request(("op" "eldoc" "ns" #("orchard.xref" 0 12 (face font-lock-type-face cider-block-dynamic-font-lock t cider-locals nil help-echo cider-help-echo fontified t)) "sym" "map") # abort-on-input) Nrepl-client-filter(#> "d9:docstring371:Returns a lazy sequence consisting.") Nrepl-bdecode(#s(queue :head ("d9:docstring371:Returns a lazy sequence consisting.") :tail ("d9:docstring371:Returns a lazy sequence consisting.")) #s(nrepl-response-queue :head nil :tail nil :stub nil)) I'm looking into this, here's the strack when this happens: evil-set-cursor-color("orange") Startup: /usr/local/bin/clojure -Sdeps '' -M:cider/nrepl Results: Stored in vars *1, *2, *3, an exception in *e Connected to nREPL server - nrepl://localhost:56118 Here's an example: nREPL server started on port 56118 on host localhost - nrepl://localhost:56118
Include here the version string displayed whenĬIDER's REPL is launched. PS: I have tested this bug on both the GUI emacs and the TUI, using the following to enable the cursor colors for the TUI version: (require 'evil-terminal-cursor-changer)Įnvironment & Version information CIDER version information The color will reset:ĭisabling eldoc-mode solves the problem, and the color reset seems to happen when eldoc is triggered. Open a CIDER buffer, jack in, go into the insert mode, observe the cursor color changing: (setq evil-normal-state-cursor '(box "#c7ceff")) (setq evil-insert-state-cursor '(box "#f19618" Typing anything in a CIDER-connected buffer will reset the cursor color. When configuring different cursor colors for evil states, the different states should have, well, different colors.