Add YaSnippet & enable Uniquify
- Added YaSnippet & clojure-snippets for it - Enabled uniquify buffer naming (oh so good) - various smaller things
This commit is contained in:
parent
a4e7f10362
commit
cbecd5031d
6 changed files with 24 additions and 9 deletions
|
@ -1,4 +1,6 @@
|
||||||
dotfiles
|
emacs.d
|
||||||
========
|
========
|
||||||
|
|
||||||
Various configuration files
|
This contains my emacs.d folder.
|
||||||
|
|
||||||
|
I use emacs for many things.
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
'(ac-delay 0.2)
|
'(ac-delay 0.2)
|
||||||
'(custom-safe-themes
|
'(custom-safe-themes
|
||||||
(quote
|
(quote
|
||||||
("2fb6fbdb644441c4ed1d47f25bed9aa7f7136271c2454ba9a29975d3cfba94c0" "466ae54a7b157ad02fd91da72b7871bccfb9bac98fdab95cf7a0d405c8572bd0" "854dc57026d3226addcc46b2b460034a74609edbd9c14e626769ac724b10fcf5" "8eaa3bce3c618cd81a318fcf2d28c1cd21278531f028feb53186f6387547dfb4" "ea0c5df0f067d2e3c0f048c1f8795af7b873f5014837feb0a7c8317f34417b04" "a234f91f9be6ed40f6ce0e94dce5cea1b9f1ccec2b9ccd42bb71c499867a3fcc" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "d6a00ef5e53adf9b6fe417d2b4404895f26210c52bb8716971be106550cea257" default)))
|
("d0ff5ea54497471567ed15eb7279c37aef3465713fb97a50d46d95fe11ab4739" "2fd1c7f994649d9f879521c4634bd8eddae866db9ff50269a9127b9f93b4e582" "2fb6fbdb644441c4ed1d47f25bed9aa7f7136271c2454ba9a29975d3cfba94c0" "466ae54a7b157ad02fd91da72b7871bccfb9bac98fdab95cf7a0d405c8572bd0" "854dc57026d3226addcc46b2b460034a74609edbd9c14e626769ac724b10fcf5" "8eaa3bce3c618cd81a318fcf2d28c1cd21278531f028feb53186f6387547dfb4" "ea0c5df0f067d2e3c0f048c1f8795af7b873f5014837feb0a7c8317f34417b04" "a234f91f9be6ed40f6ce0e94dce5cea1b9f1ccec2b9ccd42bb71c499867a3fcc" "fc5fcb6f1f1c1bc01305694c59a1a861b008c534cae8d0e48e4d5e81ad718bc6" "1e7e097ec8cb1f8c3a912d7e1e0331caeed49fef6cff220be63bd2a6ba4cc365" "d6a00ef5e53adf9b6fe417d2b4404895f26210c52bb8716971be106550cea257" default)))
|
||||||
'(erc-modules
|
'(erc-modules
|
||||||
(quote
|
(quote
|
||||||
(autojoin button completion dcc irccontrols list log match menu move-to-prompt netsplit networks noncommands notifications readonly ring scrolltobottom stamp track)))
|
(autojoin button completion dcc irccontrols list log match menu move-to-prompt netsplit networks noncommands notifications readonly ring scrolltobottom stamp track)))
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
;; if there isn't already a folder with that name
|
;; if there isn't already a folder with that name
|
||||||
(defun custom-clone-git (url foldername)
|
(defun custom-clone-git (url foldername)
|
||||||
"Clones a git repository to .emacs.d/foldername"
|
"Clones a git repository to .emacs.d/foldername"
|
||||||
(let ((fullpath (concat "~/.emacs.d/clones/" foldername)))
|
(let ((fullpath (concat "~/.emacs.d/" foldername)))
|
||||||
(unless (file-exists-p fullpath)
|
(unless (file-exists-p fullpath)
|
||||||
(async-shell-command (concat "git clone " url " " fullpath)))))
|
(async-shell-command (concat "git clone " url " " fullpath)))))
|
||||||
|
|
||||||
|
|
|
@ -1,10 +1,13 @@
|
||||||
(mapc 'require '(projectile hi2 ac-nrepl))
|
(mapc 'require '(projectile hi2 ac-nrepl yasnippet))
|
||||||
;; Initializes modes I use.
|
;; Initializes modes I use.
|
||||||
|
|
||||||
(add-hook 'prog-mode-hook 'esk-pretty-lambdas)
|
(add-hook 'prog-mode-hook 'esk-pretty-lambdas)
|
||||||
(add-hook 'prog-mode-hook 'esk-add-watchwords)
|
(add-hook 'prog-mode-hook 'esk-add-watchwords)
|
||||||
(add-hook 'prog-mode-hook 'idle-highlight-mode)
|
(add-hook 'prog-mode-hook 'idle-highlight-mode)
|
||||||
|
|
||||||
|
;; Yasnippet everywhere + activate Clojure snippets!
|
||||||
|
(yas-global-mode 1)
|
||||||
|
|
||||||
;; Configure markdown-mode
|
;; Configure markdown-mode
|
||||||
(autoload 'markdown-mode "markdown-mode"
|
(autoload 'markdown-mode "markdown-mode"
|
||||||
"Major mode for editing Markdown files" t)
|
"Major mode for editing Markdown files" t)
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
(require 'uniquify)
|
||||||
;; ## Generic settings ##
|
;; ## Generic settings ##
|
||||||
|
|
||||||
(tool-bar-mode -1)
|
(tool-bar-mode -1)
|
||||||
|
@ -7,6 +8,8 @@
|
||||||
(setq ido-use-faces nil)
|
(setq ido-use-faces nil)
|
||||||
(setq gc-cons-threshold 20000000)
|
(setq gc-cons-threshold 20000000)
|
||||||
|
|
||||||
|
(setq uniquify-buffer-name-style 'forward)
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
|
(add-to-list 'load-path "/usr/local/share/emacs/site-lisp/mu4e")
|
||||||
|
|
15
init.el
15
init.el
|
@ -25,7 +25,6 @@
|
||||||
idle-highlight-mode
|
idle-highlight-mode
|
||||||
ido-ubiquitous
|
ido-ubiquitous
|
||||||
iy-go-to-char
|
iy-go-to-char
|
||||||
leuven-theme
|
|
||||||
magit
|
magit
|
||||||
markdown-mode
|
markdown-mode
|
||||||
multiple-cursors
|
multiple-cursors
|
||||||
|
@ -37,7 +36,8 @@
|
||||||
rainbow-mode
|
rainbow-mode
|
||||||
smex
|
smex
|
||||||
switch-window
|
switch-window
|
||||||
undo-tree)
|
undo-tree
|
||||||
|
yasnippet)
|
||||||
"A list of packages to install at launch.")
|
"A list of packages to install at launch.")
|
||||||
|
|
||||||
(dolist (p my-pkgs)
|
(dolist (p my-pkgs)
|
||||||
|
@ -49,8 +49,15 @@
|
||||||
|
|
||||||
(add-to-list 'load-path user-emacs-directory)
|
(add-to-list 'load-path user-emacs-directory)
|
||||||
|
|
||||||
(mapc 'require '(init-functions
|
(require 'init-functions)
|
||||||
init-settings
|
|
||||||
|
(unless (file-exists-p "~/.emacs.d/snippets")
|
||||||
|
(make-directory "~/.emacs.d/snippets"))
|
||||||
|
|
||||||
|
(custom-clone-git "http://github.com/swannodette/clojure-snippets"
|
||||||
|
"snippets/clojure-mode")
|
||||||
|
|
||||||
|
(mapc 'require '(init-settings
|
||||||
init-modes
|
init-modes
|
||||||
init-bindings
|
init-bindings
|
||||||
init-eshell))
|
init-eshell))
|
||||||
|
|
Loading…
Reference in a new issue