Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Yuanle Song
zero-el
Commits
9d1f77fe
Commit
9d1f77fe
authored
Nov 03, 2019
by
Yuanle Song
Browse files
v2.0.3 fix . binding function
zero-input-toggle-full-width-mode > zero-input-toggle-full-width
parent
c4c9dd47
Changes
1
Hide whitespace changes
Inline
Side-by-side
zero-input.el
View file @
9d1f77fe
...
...
@@ -12,7 +12,7 @@
;; See the License for the specific language governing permissions and
;; limitations under the License.
;; Version: 2.0.
2
;; Version: 2.0.
3
;; URL: https://gitlab.emacsos.com/sylecn/zero-el
;; Package-Requires: ((emacs "24.3") (s "1.2.0"))
...
...
@@ -243,7 +243,7 @@ If item is not in lst, return nil."
;; zero-input-el version
(
defvar
zero-input-version
nil
"Zero package version."
)
(
setq
zero-input-version
"2.0.
2
"
)
(
setq
zero-input-version
"2.0.
3
"
)
;; FSM state
(
defconst
zero-input--state-im-off
'IM-OFF
)
...
...
@@ -273,7 +273,7 @@ this is used to help with buffer focus in/out events")
In full-width mode, commit ascii char will insert full-width char if there is a
corresponding full-width char. This full-width char map is
independent from punctuation map. You can change this via
`zero-input-toggle-full-width
-mode
'"
)
`zero-input-toggle-full-width'"
)
(
defvar-local
zero-input-punctuation-level
zero-input-punctuation-level-basic
"Punctuation level.
...
...
@@ -744,7 +744,7 @@ N is the argument passed to `self-insert-command'."
;; build zero-input-prefix-map
(
defvar
zero-input-prefix-map
(
define-prefix-command
'zero-input-prefix-map
))
(
let
((
bindings
'
((
","
zero-input-cycle-punctuation-level
)
(
"."
zero-input-toggle-full-width
-mode
))))
(
"."
zero-input-toggle-full-width
))))
(
dolist
(
b
bindings
)
(
define-key
zero-input-prefix-map
(
car
b
)
(
cadr
b
))))
;; mount zero-input-prefix-map in C-c , prefix key.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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