Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
E
emacs.d
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
为了安全,强烈建议开启2FA双因子认证:User Settings -> Account -> Enable two-factor authentication!!!
Show more breadcrumbs
Liu Miao
emacs.d
Commits
de8336b9
Commit
de8336b9
authored
4 years ago
by
Liu Miao
Browse files
Options
Downloads
Patches
Plain Diff
use personal `evil-collection-mode-list'
parent
06b4dfa8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
lisp/completion.el
+1
-1
1 addition, 1 deletion
lisp/completion.el
lisp/configs.el
+18
-6
18 additions, 6 deletions
lisp/configs.el
lisp/core-libs.el
+3
-1
3 additions, 1 deletion
lisp/core-libs.el
lisp/editor.el
+3
-6
3 additions, 6 deletions
lisp/editor.el
lisp/prog-common.el
+8
-8
8 additions, 8 deletions
lisp/prog-common.el
with
33 additions
and
22 deletions
lisp/completion.el
+
1
−
1
View file @
de8336b9
...
@@ -75,6 +75,7 @@
...
@@ -75,6 +75,7 @@
(
swiper-isearch
.
,
standard-seaarch-fn
)))
(
swiper-isearch
.
,
standard-seaarch-fn
)))
;; (t . ,alt-search-fn)) ;; Error when use this line
;; (t . ,alt-search-fn)) ;; Error when use this line
)
)
(
add-to-list
'user/evil-collection-mode-list
'ivy
)
:config
:config
(
setq
ivy-sort-max-size
7500
)
(
setq
ivy-sort-max-size
7500
)
...
@@ -98,7 +99,6 @@
...
@@ -98,7 +99,6 @@
;; (define-key map (kbd "C-j") 'ivy-next-line)
;; (define-key map (kbd "C-j") 'ivy-next-line)
;; (define-key map (kbd "C-k") 'ivy-previous-line))
;; (define-key map (kbd "C-k") 'ivy-previous-line))
(
add-to-list
'user/evil-collection-mode-list
'ivy
)
:bind
:bind
((
"C-c s s"
.
'swiper
)
((
"C-c s s"
.
'swiper
)
...
...
This diff is collapsed.
Click to expand it.
lisp/configs.el
+
18
−
6
View file @
de8336b9
...
@@ -74,12 +74,24 @@
...
@@ -74,12 +74,24 @@
If `lsp-mode' use lsp-mode as lsp client."
)
If `lsp-mode' use lsp-mode as lsp client."
)
(
defvar
user/evil-collection-mode-list
(
defvar
user/evil-collection-mode-list
'
(
bookmark
'
(
ag
apropos
bm
bookmark
calc
calendar
(
buff-menu
"buff-menu"
)
diff-mode
dired
doc-view
edebug
ediff
elisp-mode
eww
finder
grep
help
ibuffer
calc
calendar
(
package-menu
package
)
cus-theme
debug
dictionary
diff-mode
dired
dired-sidebar
disk-usage
doc-view
docker
ebib
edbi
edebug
ediff
eglot
explain-pause-mode
elfeed
elisp-mode
elisp-refs
elisp-slime-nav
emms
epa
ert
eshell
eval-sexp-fu
evil-mc
eww
finder
flycheck
flymake
free-keys
geiser
ggtags
git-timemachine
gnus
go-mode
grep
guix
hackernews
helm
help
helpful
hg-histedit
hungry-delete
ibuffer
image
image-dired
image+
imenu
imenu-list
popup
proced
(
indent
"indent"
)
xwidget
)
lispy
log-edit
log-view
lsp-ui-imenu
man
magit
magit-todos
neotree
nov
(
occur
replace
)
org-present
outline
(
package-menu
package
)
pass
(
pdf
pdf-view
)
popup
proced
(
process-menu
simple
)
prodigy
profiler
python
quickrun
realgud
reftex
restclient
rg
ripgrep
scroll-lock
sh-script
simple
slime
sly
speedbar
tab-bar
tablist
tabulated-list
tar-mode
(
term
term
ansi-term
multi-term
)
tetris
thread
timer-list
vc-annotate
vc-dir
vc-git
vdiff
view
vlf
vterm
wdired
wgrep
which-key
woman
xref
(
ztree
ztree-diff
)
xwidget
)
)
)
...
...
This diff is collapsed.
Click to expand it.
lisp/core-libs.el
+
3
−
1
View file @
de8336b9
...
@@ -42,7 +42,9 @@ If INITIAL-DIRECTORY is non nil start in that directory."
...
@@ -42,7 +42,9 @@ If INITIAL-DIRECTORY is non nil start in that directory."
(
defun
user/lazy-load
()
(
defun
user/lazy-load
()
"Load after everything."
"Load after everything."
(
evil-collection-init
'user/evil-collection-mode-list
)
(
interactive
)
(
setq
evil-collection-mode-list
nil
)
(
evil-collection-init
user/evil-collection-mode-list
)
)
)
(
provide
'core-libs
)
(
provide
'core-libs
)
...
...
This diff is collapsed.
Click to expand it.
lisp/editor.el
+
3
−
6
View file @
de8336b9
...
@@ -92,6 +92,9 @@
...
@@ -92,6 +92,9 @@
(
use-package
evil-collection
(
use-package
evil-collection
:after
evil
:after
evil
:ensure
t
:ensure
t
:custom
(
evil-collection-setup-minibuffer
t
)
(
evil-collection-mode-list
nil
)
)
)
;;; General - for keybindings
;;; General - for keybindings
...
@@ -202,12 +205,6 @@
...
@@ -202,12 +205,6 @@
(
push
'
(
"*Google Translate*"
:dedicated
t
:position
bottom
:stick
t
:noselect
t
:height
0.4
)
popwin:special-display-config
)
(
push
'
(
"*Google Translate*"
:dedicated
t
:position
bottom
:stick
t
:noselect
t
:height
0.4
)
popwin:special-display-config
)
))
))
(
use-package
popup
:ensure
t
:config
(
add-to-list
'user/evil-collection-mode-list
'popup
)
)
;;; Modeline
;;; Modeline
(
use-package
doom-modeline
(
use-package
doom-modeline
...
...
This diff is collapsed.
Click to expand it.
lisp/prog-common.el
+
8
−
8
View file @
de8336b9
...
@@ -66,15 +66,15 @@
...
@@ -66,15 +66,15 @@
(
use-package
company-mode
(
use-package
company-mode
:ensure
company
:ensure
company
:hook
prog-mode
:hook
prog-mode
:config
:custom
(
progn
(
company-idle-delay
0.2
)
(
setq
company-idle-delay
0.2
)
(
company-minimum-prefix-length
2
)
(
setq
company-minimum-prefix-length
2
)
(
tab-always-indent
'complete
)
(
setq
tab-always-indent
'complete
)
:init
(
setq-default
company-backends
(
delete
'company-semantic
company-backends
))
(
push
'
(
company-semantic
:with
company-yasnippet
)
company-backends
))
(
add-to-list
'user/evil-collection-mode-list
'company
)
(
add-to-list
'user/evil-collection-mode-list
'company
)
:config
(
setq-default
company-backends
(
delete
'company-semantic
company-backends
))
(
push
'
(
company-semantic
:with
company-yasnippet
)
company-backends
)
:diminish
company-mode
:diminish
company-mode
)
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment