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
6bd8ef24
Commit
6bd8ef24
authored
4 years ago
by
MoScribe
Browse files
Options
Downloads
Patches
Plain Diff
udpate helm to ivy
parent
eda7edc8
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
init.el
+44
-57
44 additions, 57 deletions
init.el
with
44 additions
and
57 deletions
init.el
+
44
−
57
View file @
6bd8ef24
...
...
@@ -164,6 +164,30 @@
:commands
company-quickhelp-manual-begin
:bind
((
"C-c d"
.
'company-quickhelp-manual-begin
)))
(
use-package
swiper
:ensure
t
:config
(
ivy-mode
1
)
(
setq
ivy-use-virtual-buffers
t
)
(
setq
enable-recursive-minibuffers
t
)
:bind
((
"C-s"
.
'swiper
)
)
)
(
use-package
counsel
:ensure
t
:config
:bind
((
"M-x"
.
'counsel-M-x
)
(
"C-h f"
.
'counsel-describe-function
)
(
"C-h v"
.
'counsel-describe-variable
)
)
)
(
use-package
window-jump
:ensure
t
)
;; YASnippte
(
use-package
yasnippet
:ensure
t
...
...
@@ -174,60 +198,25 @@
:diminish
yas-minor-mode
)
(
use-package
yasnippet-snippets
:ensure
t
)
;; Helm------------------------------------------------------------------------------------
(
use-package
popwin
:ensure
t
)
(
use-package
helm-xref
:ensure
t
)
(
use-package
helm-swoop
:ensure
t
:init
(
progn
(
setq
helm-swoop-split-window-function
'helm-default-display-buffer
helm-swoop-split-with-multiple-windows
t
helm-swoop-split-direction
'split-window-vertically
)))
(
use-package
helm
:ensure
t
:config
(
helm-mode
1
)
(
popwin-mode
1
)
:init
(
setq
xref-show-xrefs-function
'helm-xref-show-xrefs
)
(
add-to-list
'popwin:special-display-config
'
(
"*.*[Hh]elm.**"
:regexp
t
:position
bottom
))
:bind
((
"M-x"
.
#'
helm-M-x
)
(
"C-x C-f"
.
#'
helm-find-files
)
(
"C-c f f"
.
#'
helm-find-files
)
(
"C-c f r"
.
'helm-recentf
)
(
"C-c s s"
.
'helm-swoop-without-pre-input
)
(
"C-c s r"
.
'helm-swoop
)
(
"C-x b"
.
'helm-mini
)
(
"C-c h i"
.
'helm-semantic-or-imenu
)
(
"C-c h f"
.
'helm-flycheck
)
)
:diminish
helm-mode
)
;; Projectile------------------------------------------------------------------------
(
use-package
h
el
m
-projectile
(
use-package
couns
el-projectile
:ensure
t
)
(
use-package
projectile
:ensure
t
:init
(
helm-projectile-on
)
:config
(
projectile-mode
+1
)
:diminish
projectile-mode
:bind
((
"C-c p f"
.
'
h
el
m
-projectile-find-file
)
(
"C-c p
h
"
.
'
h
el
m
-projectile
)
(
"C-c p
p
"
.
'
h
el
m
-projectile-switch-
project
))
:bind
((
"C-c p f"
.
'
couns
el-projectile-find-file
)
(
"C-c p
p
"
.
'
couns
el-projectile
-switch-project
)
(
"C-c p
b
"
.
'
couns
el-projectile-switch-
to-buffer
))
)
(
use-package
recentf
:defer
1
)
...
...
@@ -279,9 +268,6 @@
(
use-package
flycheck-mode
:ensure
flycheck
:hook
prog-mode
)
(
use-package
helm-flycheck
:ensure
t
)
;; hs-minor-mode
;;; LSP
...
...
@@ -318,19 +304,19 @@
(
global-evil-leader-mode
)
(
evil-leader/set-leader
"SPC"
)
(
evil-leader/set-key
;;
helm
minibuffers-------------------------
"f f"
'
h
el
m
-find-file
s
"f r"
'
h
el
m
-recentf
;;
swiper
minibuffers-------------------------
"f f"
'
couns
el-find-file
"f r"
'
couns
el-recentf
"f s"
'save-buffer
"SPC"
#'
h
el
m
-M-x
"s s"
'
helm-swoop-without-pre-input
"s r"
'helm-swoop
"h i"
'
helm-semantic-or
-imenu
"h f"
'helm-flycheck
"SPC"
'couns
el-M-x
"s s"
'
swiper
;;
"s r" 'helm-swoop
"h i"
'
counsel
-imenu
;;
"h f" 'helm-flycheck
;; buffer
"b d"
'kill-current-buffer
"b k"
'kill-buffer
"b b"
'helm-mini
;;
"b b" 'helm-mini
;; magit-----------------------------------
"g s"
'magit-status
"g d"
'magit-diff-range
...
...
@@ -338,9 +324,10 @@
"g P"
'magit-pull-branch
"g c"
'magit-commit
;; projectile------------------------------
"p f"
'helm-projectile-find-file
"p h"
'helm-projectile
"p p"
'helm-projectile-switch-project
"p f"
'counsel-projectile-find-file
"p h"
'counsel-projectile
"p p"
'counsel-projectile-switch-project
"p b"
'counsel-projectile-switch-to-buffer
;; windows options-------------------------
"w l"
'window-jump-right
"w h"
'window-jump-left
...
...
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