yasnippet added to emacs
This commit is contained in:
parent
ca7dd305a3
commit
8fc72b14d1
1 changed files with 8 additions and 4 deletions
12
emacs/.emacs
12
emacs/.emacs
|
@ -30,7 +30,7 @@
|
||||||
'(menu-bar-mode nil)
|
'(menu-bar-mode nil)
|
||||||
'(package-selected-packages
|
'(package-selected-packages
|
||||||
(quote
|
(quote
|
||||||
(evil-surround org evil-magit magit makefile-runner evil)))
|
(yasnippet evil-surround org evil-magit magit makefile-runner evil)))
|
||||||
'(scroll-bar-mode nil)
|
'(scroll-bar-mode nil)
|
||||||
'(tool-bar-mode nil))
|
'(tool-bar-mode nil))
|
||||||
(custom-set-faces
|
(custom-set-faces
|
||||||
|
@ -55,6 +55,10 @@
|
||||||
(require 'auto-complete-config)
|
(require 'auto-complete-config)
|
||||||
(ac-config-default)
|
(ac-config-default)
|
||||||
|
|
||||||
|
;; Yasnippet
|
||||||
|
(require 'yasnippet)
|
||||||
|
(yas-global-mode 1)
|
||||||
|
|
||||||
;; Window movement
|
;; Window movement
|
||||||
(global-set-key (kbd "C-x <up>") 'windmove-up)
|
(global-set-key (kbd "C-x <up>") 'windmove-up)
|
||||||
(global-set-key (kbd "C-x <down>") 'windmove-down)
|
(global-set-key (kbd "C-x <down>") 'windmove-down)
|
||||||
|
@ -76,10 +80,10 @@
|
||||||
(defun term-split ()
|
(defun term-split ()
|
||||||
"creates terminal window below"
|
"creates terminal window below"
|
||||||
(interactive)
|
(interactive)
|
||||||
(let (window (split-window-below -7))
|
(let ((window (split-window-below -7)))
|
||||||
(select-window window)
|
(select-window window)
|
||||||
(term "/bin/zsh")
|
(term "/bin/zsh")))
|
||||||
(set-window-dedicated-p window t)))
|
;(set-window-dedicated-p window t)))
|
||||||
|
|
||||||
(global-set-key (kbd "C-x t") 'term-split)
|
(global-set-key (kbd "C-x t") 'term-split)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue