Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign uporg-cycle problem in evil normal state #4024
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
StreakyCobra
Dec 1, 2015
Contributor
It's probably another variant of #3472. The <tab> keycode is only understood by the GUI version of emacs, and the TAB keycode is understood by both Terminal and GUI versions of emacs. There is two of them because, for historic reasons, TAB and C-i are the same keycode. So to have the possibility to differentiate Tab from C-i in GUI, the <tab> keycode is used.
<tab>= Tab (GUI only)TAB=C-i= C-i = Tab (Terminal, or GUI if<tab>is not set)
There are people wanting to use TAB everywhere, like you, to have the same behaviour in Terminal and in GUI. There are others people, like in the linked issue, that want to use <tab> everywhere to have the possibility to differentiate Tab key from C-i in GUI, but breaking terminals.
@justbur found a clean way to satisfy everybody and this will probably be soon in develop (and later in master). This is truly awesome, because it will even work on demonized emacs :-)
|
It's probably another variant of #3472. The
There are people wanting to use @justbur found a clean way to satisfy everybody and this will probably be soon in |
StreakyCobra
added
Org
Key Bindings
Running in terminal
Duplicate ☝
labels
Dec 1, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dingmingxin
Dec 2, 2015
Thanks for replying in time.
But in which way can I personally configure emacs, making TAB act as org-cycle in org mode ?
I have tried this in ~/.spacemacs.d/init.el
(defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration. You are free to put any user code."
(define-key evil-normal-state-map (kbd "TAB") 'org-cycle)
)But it did not work as I expected.
dingmingxin
commented
Dec 2, 2015
|
Thanks for replying in time. (defun dotspacemacs/user-config ()
"Configuration function for user code.
This function is called at the very end of Spacemacs initialization after
layers configuration. You are free to put any user code."
(define-key evil-normal-state-map (kbd "TAB") 'org-cycle)
)But it did not work as I expected. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
syl20bnr
Dec 2, 2015
Owner
This is a temporary regression in develop, we will fix it soon, sorry for this.
|
This is a temporary regression in develop, we will fix it soon, sorry for this. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
justbur
Dec 2, 2015
Contributor
@dingmingxin like this in user-config
(evil-define-key 'normal evil-jumper-mode-map (kbd "TAB") nil)|
@dingmingxin like this in user-config (evil-define-key 'normal evil-jumper-mode-map (kbd "TAB") nil) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
dingmingxin
commented
Dec 2, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
vitiral
Dec 24, 2015
Just want to mention that this is still broken for me in mainline.
@justbur is there a way to do it so that that only takes effect for org mode? Something like (evil-define-key-mode 'org-mode ... et
vitiral
commented
Dec 24, 2015
|
Just want to mention that this is still broken for me in mainline. @justbur is there a way to do it so that that only takes effect for org mode? Something like |
dingmingxin commentedDec 1, 2015
Here are the layers that I loaded.
dotspacemacs-configuration-layers '( better-defaults emacs-lisp git markdown org )When I start emacs in OSX Terminal.app , opening a org file. Hitting TAB key in the keyboard did not trigger function:
By describe-function org-cycle, I got:
It is bound to <mouse-1>, <normal-state> <tab>, <tab> .....I have nothing special settings in my Terminal.app. And Tab behavior is normal in "Gnu Emacs for OSX"(GUI mode).
spacemacs version: 0.104.6
emacs version: 25.1
osx: 10.11.1
How can I solve this problem .Can anyone help me out ? Much appreciations.