move stuff that doesn't need el-get higher in .emacs
This commit is contained in:
parent
4a429e868c
commit
96b79bfa84
38
.emacs
38
.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)
|
||||
@ -44,6 +62,7 @@
|
||||
gnuplot-mode
|
||||
csharp-mode
|
||||
markdown-mode
|
||||
todotxt-mode
|
||||
php-mode
|
||||
scad-mode
|
||||
smarttabs))
|
||||
@ -51,24 +70,6 @@
|
||||
(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.
|
||||
|
Loading…
Reference in New Issue
Block a user