From 8fc72b14d10185fa43f6cd5a68a700db9748b7a4 Mon Sep 17 00:00:00 2001 From: Valentin Gehrke Date: Tue, 16 May 2017 08:12:04 +0200 Subject: [PATCH] yasnippet added to emacs --- emacs/.emacs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/emacs/.emacs b/emacs/.emacs index 802d597..4592918 100644 --- a/emacs/.emacs +++ b/emacs/.emacs @@ -30,7 +30,7 @@ '(menu-bar-mode nil) '(package-selected-packages (quote - (evil-surround org evil-magit magit makefile-runner evil))) + (yasnippet evil-surround org evil-magit magit makefile-runner evil))) '(scroll-bar-mode nil) '(tool-bar-mode nil)) (custom-set-faces @@ -55,6 +55,10 @@ (require 'auto-complete-config) (ac-config-default) +;; Yasnippet +(require 'yasnippet) +(yas-global-mode 1) + ;; Window movement (global-set-key (kbd "C-x ") 'windmove-up) (global-set-key (kbd "C-x ") 'windmove-down) @@ -76,10 +80,10 @@ (defun term-split () "creates terminal window below" (interactive) - (let (window (split-window-below -7)) + (let ((window (split-window-below -7))) (select-window window) - (term "/bin/zsh") - (set-window-dedicated-p window t))) + (term "/bin/zsh"))) + ;(set-window-dedicated-p window t))) (global-set-key (kbd "C-x t") 'term-split)