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
ebea1121
Commit
ebea1121
authored
4 years ago
by
MoScribe
Browse files
Options
Downloads
Patches
Plain Diff
use ivy from doom & add popwin from spacemacs
parent
0b993afa
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
init.el
+0
-52
0 additions, 52 deletions
init.el
lisp/completion.el
+68
-0
68 additions, 0 deletions
lisp/completion.el
lisp/editor.el
+24
-2
24 additions, 2 deletions
lisp/editor.el
with
92 additions
and
54 deletions
init.el
+
0
−
52
View file @
ebea1121
...
...
@@ -85,58 +85,6 @@
(
require
'editor
)
(
require
'completion
)
;;; Navigation
(
use-package
ivy
:ensure
t
:diminish
ivy-mode
)
(
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
popwin
:ensure
t
)
;; Projectile------------------------------------------------------------------------
(
use-package
counsel-projectile
:ensure
t
)
(
use-package
projectile
:ensure
t
:init
(
progn
(
setq
projectile-indexing-method
'alien
projectile-generic-command
"find . -type f"
)
(
setq
projectile-sort-order
'recentf
projectile-cache-file
user/projectile-cache-file
projectile-known-projects-file
user/projectile-known-projects-file
)
)
:config
(
projectile-mode
+1
)
:diminish
projectile-mode
:bind
((
"C-c p f"
.
'counsel-projectile-find-file
)
(
"C-c p p"
.
'counsel-projectile-switch-project
)
(
"C-c p b"
.
'counsel-projectile-switch-to-buffer
)
(
"C-c p k"
.
'projectile-kill-buffers
))
)
;;; Keybinding
(
use-package
evil
:ensure
t
)
...
...
This diff is collapsed.
Click to expand it.
lisp/completion.el
+
68
−
0
View file @
ebea1121
...
...
@@ -13,8 +13,27 @@
;;
;;
;;; Code:
(
use-package
projectile
:ensure
t
:init
(
progn
(
setq
projectile-indexing-method
'alien
projectile-generic-command
"find . -type f"
)
(
setq
projectile-sort-order
'recentf
projectile-cache-file
user/projectile-cache-file
projectile-known-projects-file
user/projectile-known-projects-file
)
)
:config
(
projectile-mode
+1
)
:diminish
projectile-mode
:bind
((
"C-c p f"
.
'counsel-projectile-find-file
)
(
"C-c p p"
.
'counsel-projectile-switch-project
)
(
"C-c p b"
.
'counsel-projectile-switch-to-buffer
)
(
"C-c p k"
.
'projectile-kill-buffers
))
)
(
use-package
ivy
:ensure
t
:hook
(
after-init
.
ivy-mode
)
:init
(
let
((
standard-seaarch-fn
#'
ivy--regex-plus
)
...
...
@@ -43,6 +62,55 @@
ivy-use-selectable-prompt
t
)
)
(
use-package
counsel
:ensure
t
:defer
t
:init
(
define-key!
[remap
apropos]
#'
counsel-apropos
[remap
bookmark-jump]
#'
counsel-bookmark
[remap
describe-bindings]
#'
counsel-descbinds
[remap
describe-face]
#'
counsel-faces
[remap
describe-function]
#'
counsel-describe-function
[remap
describe-variable]
#'
counsel-describe-variable
[remap
evil-ex-registers]
#'
counsel-evil-registers
[remap
evil-show-marks]
#'
counsel-mark-ring
[remap
execute-extended-command]
#'
counsel-M-x
[remap
find-file]
#'
counsel-find-file
[remap
find-library]
#'
counsel-find-library
[remap
imenu]
#'
counsel-imenu
[remap
info-lookup-symbol]
#'
counsel-info-lookup-symbol
[remap
load-theme]
#'
counsel-load-theme
[remap
locate]
#'
counsel-locate
[remap
org-goto]
#'
counsel-org-goto
[remap
org-set-tags-command]
#'
counsel-org-tag
[remap
recentf-open-files]
#'
counsel-recentf
[remap
set-variable]
#'
counsel-set-variable
[remap
swiper]
#'
counsel-grep-or-swiper
[remap
unicode-chars-list-chars]
#'
counsel-unicode-char
[remap
yank-pop]
#'
counsel-yank-pop
)
:config
;; Don't use ^
(
setq
ivy-initial-inputs-alist
nil
)
)
(
use-package
counsel-projectile
:ensure
t
)
(
use-package
ivy-rich
:ensure
t
:after
counsel
:init
(
progn
(
setq
ivy-rich-path-stytle
'abbrev
ivy-virtual-abbreviate
'full
))
:config
(
progn
(
setq
ivy-rich-parse-remote-buffer
nil
)
(
ivy-rich-mode
)
)
)
(
provide
'completion
)
;;; completion.el ends here
This diff is collapsed.
Click to expand it.
lisp/editor.el
+
24
−
2
View file @
ebea1121
...
...
@@ -133,7 +133,6 @@
:bind
((
"C-c j i"
.
'imenu
))
)
;;; Minibuffers
;; Allow for minibuffer-ception.
(
setq
enable-recursive-minibuffers
t
)
...
...
@@ -150,6 +149,30 @@
'
(
read-only
t
intangible
t
cursor-intangible
t
face
minibuffer-prompt
))
(
add-hook
'minibuffer-setup-hook
#'
cursor-intangible-mode
)
;;; Popwin
(
use-package
popwin
:ensure
t
:config
(
progn
(
popwin-mode
1
)
(
setq
popwin:special-display-config
nil
)
;; buffer that we manage
(
push
'
(
"*Help*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
:height
0.4
)
popwin:special-display-config
)
(
push
'
(
"*Process List*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
:height
0.4
)
popwin:special-display-config
)
(
push
'
(
compilation-mode
:dedicated
nil
:position
bottom
:stick
t
:noselect
t
:height
0.4
)
popwin:special-display-config
)
(
push
'
(
dap-server-log-mode
:dedicated
nil
:position
bottom
:stick
t
:noselect
t
:height
0.4
)
popwin:special-display-config
)
(
push
'
(
"*Shell Command Output*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
)
popwin:special-display-config
)
(
push
'
(
"*Async Shell Command*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
)
popwin:special-display-config
)
(
push
'
(
"*undo-tree*"
:dedicated
t
:position
right
:stick
t
:noselect
nil
:width
60
)
popwin:special-display-config
)
(
push
'
(
"*undo-tree Diff*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
:height
0.3
)
popwin:special-display-config
)
(
push
'
(
"*ert*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
)
popwin:special-display-config
)
(
push
'
(
"*grep*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
)
popwin:special-display-config
)
(
push
'
(
"*nosetests*"
:dedicated
t
:position
bottom
:stick
t
:noselect
nil
)
popwin:special-display-config
)
(
push
'
(
"^\*WoMan.+\*$"
:regexp
t
:position
bottom
)
popwin:special-display-config
)
(
push
'
(
"*Google Translate*"
:dedicated
t
:position
bottom
:stick
t
:noselect
t
:height
0.4
)
popwin:special-display-config
)
))
;;; Modeline
(
use-package
doom-modeline
...
...
@@ -169,7 +192,6 @@
doom-modeline-major-mode-icon
t
doom-modeline-buffer-file-name-style
'relative-from-project
)
(
use-package
anzu
:ensure
t
:defer
t
...
...
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