From 96b79bfa84a17cddbc28bb5b2240de9a0013f4f0 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Sun, 3 May 2015 09:45:48 -0400 Subject: [PATCH] move stuff that doesn't need el-get higher in .emacs --- .emacs | 74 ++++++++++++++++++++++++++++++---------------------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/.emacs b/.emacs index 57758f8..e6c65c6 100644 --- a/.emacs +++ b/.emacs @@ -11,6 +11,14 @@ read-file-name-completion-ignore-case t inhibit-startup-screen t vc-follow-symlinks t) +(load-theme 'fred t) +(desktop-save-mode 1) +(savehist-mode 1) +(tool-bar-mode -1) + +;; Keybinds +(global-set-key (kbd "C-z") `recompile) +(global-set-key (kbd "C-S-z") `compile) ;; save backups and autosaves in tmp (setq backup-directory-alist @@ -18,6 +26,16 @@ (setq auto-save-file-name-transforms `((".*" ,temporary-file-directory t))) + +;; use windmove to move point with shift+arrow key +(when (fboundp 'windmove-default-keybindings) + (windmove-default-keybindings)) + +;; define function for inserting today's date +(defun insert-date () + (interactive) + (insert (format-time-string "%Y.%m.%d"))) + ;; load el-get (add-to-list 'load-path "~/.emacs.d/el-get/el-get") (unless (require 'el-get nil 'noerror) @@ -30,45 +48,28 @@ (add-to-list 'el-get-recipe-path "~/.emacs.d/el-get-user/recipies") (setq el-get-user-package-directory "~/.emacs.d/el-get-user/init-files") (setq my-packages - '(el-get - smart-mode-line - company - tramp - projectile - hideif - magit - undo-tree - lua-mode - pkgbuild-mode - arduino-mode - gnuplot-mode - csharp-mode - markdown-mode - php-mode - scad-mode - smarttabs)) - ;;auctex)) + '(el-get + smart-mode-line + company + tramp + projectile + hideif + magit + undo-tree + lua-mode + pkgbuild-mode + arduino-mode + gnuplot-mode + csharp-mode + markdown-mode + todotxt-mode + php-mode + scad-mode + smarttabs)) + ;;auctex)) (el-get-cleanup my-packages) (el-get 'sync my-packages) -(global-set-key (kbd "C-z") `recompile) -(global-set-key (kbd "C-S-z") `compile) - -(desktop-save-mode 1) -(savehist-mode 1) - -;; use windmove to move point with shift+arrow key -(when (fboundp 'windmove-default-keybindings) - (windmove-default-keybindings)) - -(load-theme 'fred t) -(tool-bar-mode -1) - -;; define function for inserting today's date -(defun insert-date () - (interactive) - (insert (format-time-string "%Y.%m.%d"))) - ;;allow saving files that need root (defun find-file-as-root(buffer) "use sudo to open a file" @@ -119,6 +120,7 @@ (define-key c++-mode-map (kbd "C-c o") 'ff-find-other-file) (define-key c-mode-map (kbd "C-c h") 'c++-headers) (define-key c++-mode-map (kbd "C-c h") 'c++-headers))) + (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful.