Projectile, Underscore in word, terminal-here
This commit is contained in:
parent
52ca5dd236
commit
c856e41b47
1 changed files with 20 additions and 6 deletions
26
emacs/.emacs
26
emacs/.emacs
|
@ -25,6 +25,9 @@
|
||||||
;; Disable backup
|
;; Disable backup
|
||||||
(setq make-backup-files nil)
|
(setq make-backup-files nil)
|
||||||
|
|
||||||
|
;; Treat underscore as part of word
|
||||||
|
(modify-syntax-entry ?_ "w")
|
||||||
|
|
||||||
(push '("melpa" . "http://melpa.milkbox.net/packages/") package-archives)
|
(push '("melpa" . "http://melpa.milkbox.net/packages/") package-archives)
|
||||||
|
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
|
@ -130,7 +133,6 @@
|
||||||
(use-package org
|
(use-package org
|
||||||
:ensure t)
|
:ensure t)
|
||||||
|
|
||||||
|
|
||||||
;; Evil-mode
|
;; Evil-mode
|
||||||
(use-package evil
|
(use-package evil
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -143,6 +145,11 @@
|
||||||
(define-key evil-motion-state-map [mouse-1] 'silence)
|
(define-key evil-motion-state-map [mouse-1] 'silence)
|
||||||
(setq-default evil-cross-lines t))
|
(setq-default evil-cross-lines t))
|
||||||
|
|
||||||
|
(use-package projectile
|
||||||
|
:ensure t
|
||||||
|
:demand t
|
||||||
|
:config (projectile-global-mode t))
|
||||||
|
|
||||||
;; Auto-Complete
|
;; Auto-Complete
|
||||||
(use-package auto-complete
|
(use-package auto-complete
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -161,6 +168,13 @@
|
||||||
(setq ivy-count-format "(%d/%d) ")
|
(setq ivy-count-format "(%d/%d) ")
|
||||||
(define-key ivy-minibuffer-map (kbd "<C-return>") 'ivy-immediate-done)))
|
(define-key ivy-minibuffer-map (kbd "<C-return>") 'ivy-immediate-done)))
|
||||||
|
|
||||||
|
;; Quickly open external terminal
|
||||||
|
(use-package terminal-here
|
||||||
|
:ensure t
|
||||||
|
:demand t
|
||||||
|
:config (progn
|
||||||
|
(global-set-key (kbd "C-x t") #'terminal-here-launch)))
|
||||||
|
|
||||||
;; swiper
|
;; swiper
|
||||||
(use-package swiper
|
(use-package swiper
|
||||||
:ensure t
|
:ensure t
|
||||||
|
@ -211,11 +225,11 @@
|
||||||
;; Easy terminal
|
;; Easy terminal
|
||||||
(setq my/default-shell (or (executable-find "zsh") (executable-find "bash")))
|
(setq my/default-shell (or (executable-find "zsh") (executable-find "bash")))
|
||||||
|
|
||||||
(use-package shell-pop
|
;;(use-package shell-pop
|
||||||
:ensure t
|
;; :ensure t
|
||||||
:bind ("C-x t" . shell-pop)
|
;; :bind ("C-x t" . shell-pop)
|
||||||
:config
|
;; :config
|
||||||
(setq-default shell-pop-term-shell my/default-shell))
|
;; (setq-default shell-pop-term-shell my/default-shell))
|
||||||
|
|
||||||
;; tabbing (doesn't really work yet)
|
;; tabbing (doesn't really work yet)
|
||||||
(setq-default indent-tabs-mode t)
|
(setq-default indent-tabs-mode t)
|
||||||
|
|
Loading…
Reference in a new issue