switch to helm completions
This commit is contained in:
parent
f56827fd01
commit
f29a140ba8
|
@ -4,7 +4,7 @@
|
||||||
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) ; this goes in chemacs2 init -- DO NOT UNCOMMENT
|
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t) ; this goes in chemacs2 init -- DO NOT UNCOMMENT
|
||||||
(package-initialize) ; this goes in chemacs2 init -- DO NOT UNCOMMENT
|
(package-initialize) ; this goes in chemacs2 init -- DO NOT UNCOMMENT
|
||||||
(add-to-list 'package-selected-packages
|
(add-to-list 'package-selected-packages
|
||||||
'(helpful ido-completing-read+ dired-rainbow dired-rainbow-listing dired-single dash s origami diminish persp-mode modus-themes transpose-frame use-package)
|
'(helpful helm dired-rainbow dired-rainbow-listing dired-single dash s origami diminish persp-mode modus-themes transpose-frame use-package)
|
||||||
)
|
)
|
||||||
(require 'use-package)
|
(require 'use-package)
|
||||||
|
|
||||||
|
@ -239,14 +239,6 @@ e "meta" "unity" "tres" "tscn" "import" "godot"))
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; Set some global config
|
; Set some global config
|
||||||
(setq inhibit-splash-screen t) ; why do you need to tell me things i know by default
|
(setq inhibit-splash-screen t) ; why do you need to tell me things i know by default
|
||||||
; Turn on ido mode (useful for buffer swaps and find file completion)
|
|
||||||
(require 'ido-completing-read+)
|
|
||||||
(ido-ubiquitous-mode 1)
|
|
||||||
(setq ido-enable-flex-matching t)
|
|
||||||
(setq ido-everywhere t)
|
|
||||||
(ido-mode 1)
|
|
||||||
(defun ido-kill-emacs-hook ()
|
|
||||||
(ignore-errors (ido-save-history)))
|
|
||||||
(setq-default tab-width 4) ; sanity!
|
(setq-default tab-width 4) ; sanity!
|
||||||
(electric-indent-mode 0) ; return should NOT fuck with the indentation of the previous line
|
(electric-indent-mode 0) ; return should NOT fuck with the indentation of the previous line
|
||||||
|
|
||||||
|
@ -334,6 +326,26 @@ e "meta" "unity" "tres" "tscn" "import" "godot"))
|
||||||
(setq persp-autokill-buffer-on-remove 'kill-weak)
|
(setq persp-autokill-buffer-on-remove 'kill-weak)
|
||||||
(add-hook 'window-setup-hook #'(lambda () (persp-mode 1))))
|
(add-hook 'window-setup-hook #'(lambda () (persp-mode 1))))
|
||||||
|
|
||||||
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
; helm
|
||||||
|
(setq completion-styles '(flex))
|
||||||
|
(require 'helm-config)
|
||||||
|
(helm-mode 1)
|
||||||
|
; helm-browse-project
|
||||||
|
; helm-ls-git
|
||||||
|
; helm-dabbrev
|
||||||
|
; helm-imenu and helm-imenu-in-all-buffers: provide imenus for current or all buffers
|
||||||
|
(define-key global-map [remap find-file] 'helm-find-files)
|
||||||
|
(define-key global-map [remap occur] 'helm-occur)
|
||||||
|
(define-key global-map [remap list-buffers] 'helm-buffers-list)
|
||||||
|
(define-key global-map [remap dabbrev-expand] 'helm-dabbrev)
|
||||||
|
(define-key global-map [remap execute-extended-command] 'helm-M-x)
|
||||||
|
(define-key global-map [remap apropos-command] 'helm-apropos)
|
||||||
|
(unless (boundp 'completion-in-region-function)
|
||||||
|
(define-key lisp-interaction-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point)
|
||||||
|
(define-key emacs-lisp-mode-map [remap completion-at-point] 'helm-lisp-completion-at-point))
|
||||||
|
(add-hook 'kill-emacs-hook #'(lambda () (and (file-exists-p "$CONF_FILE") (delete-file "$CONF_FILE"))))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
; flyspell
|
; flyspell
|
||||||
;(require 'flyspell)
|
;(require 'flyspell)
|
||||||
|
|
3
emacs.md
3
emacs.md
|
@ -44,6 +44,8 @@ git clone https://github.com/beancount/beancount-mode.git
|
||||||
cd [profile_path]
|
cd [profile_path]
|
||||||
git clone https://github.com/mnewt/dired-rainbow-listing
|
git clone https://github.com/mnewt/dired-rainbow-listing
|
||||||
|
|
||||||
|
install hunspell + dictionaries choco install hunspell.portable / https://github.com/wooorm/dictionaries
|
||||||
|
|
||||||
open scratch buffer. paste below into it as the contents then do `M-x ev-b RET`
|
open scratch buffer. paste below into it as the contents then do `M-x ev-b RET`
|
||||||
|
|
||||||
``` elisp
|
``` elisp
|
||||||
|
@ -75,6 +77,7 @@ open scratch buffer. paste below into it as the contents then do `M-x ev-b RET`
|
||||||
diminish
|
diminish
|
||||||
dash
|
dash
|
||||||
transpose-frame
|
transpose-frame
|
||||||
|
helm
|
||||||
s
|
s
|
||||||
f
|
f
|
||||||
oragami
|
oragami
|
||||||
|
|
Reference in a new issue