Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
2601aa91
Commit
2601aa91
authored
Feb 22, 2021
by
Juri Linkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* lisp/tab-bar.el (tab-bar--undefine-keys): New function from tab-bar-mode.
parent
8d5dfafa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
lisp/tab-bar.el
lisp/tab-bar.el
+10
-7
No files found.
lisp/tab-bar.el
View file @
2601aa91
...
...
@@ -113,6 +113,15 @@ Possible modifier keys are `control', `meta', `shift', `hyper', `super' and
(
unless
(
global-key-binding
[
(
control
shift
iso-lefttab
)
]
)
(
global-set-key
[
(
control
shift
iso-lefttab
)
]
'tab-previous
)))
(
defun
tab-bar--undefine-keys
()
"Uninstall key bindings previously bound by `tab-bar--define-keys'."
(
when
(
eq
(
global-key-binding
[
(
control
tab
)
]
)
'tab-next
)
(
global-unset-key
[
(
control
tab
)
]
))
(
when
(
eq
(
global-key-binding
[
(
control
shift
tab
)
]
)
'tab-previous
)
(
global-unset-key
[
(
control
shift
tab
)
]
))
(
when
(
eq
(
global-key-binding
[
(
control
shift
iso-lefttab
)
]
)
'tab-previous
)
(
global-unset-key
[
(
control
shift
iso-lefttab
)
]
)))
(
defun
tab-bar--load-buttons
()
"Load the icons for the tab buttons."
(
when
(
and
tab-bar-new-button
...
...
@@ -181,13 +190,7 @@ update."
(
tab-bar--load-buttons
))
(
if
tab-bar-mode
(
tab-bar--define-keys
)
;; Unset only keys bound by tab-bar
(
when
(
eq
(
global-key-binding
[
(
control
tab
)
]
)
'tab-next
)
(
global-unset-key
[
(
control
tab
)
]
))
(
when
(
eq
(
global-key-binding
[
(
control
shift
tab
)
]
)
'tab-previous
)
(
global-unset-key
[
(
control
shift
tab
)
]
))
(
when
(
eq
(
global-key-binding
[
(
control
shift
iso-lefttab
)
]
)
'tab-previous
)
(
global-unset-key
[
(
control
shift
iso-lefttab
)
]
))))
(
tab-bar--undefine-keys
)))
(
defun
tab-bar-handle-mouse
(
event
)
"Text-mode emulation of switching tabs on the tab bar.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment