Commits

Anonymous committed 9fa776a

more customizations

  • Participants
  • Parent commits 2b4c44f

Comments (0)

Files changed (1)

-;;;;;;;;;;;;;;;;
+1;;;;;;;;;;;;;;;;
 ;; Packages
 ;;;;;;;;;;;;;;;;
 
 ;; Initialize Marmalade repo
-;(require 'package)
-;(add-to-list 'package-archives
-;             '("marmalade" . "http://marmalade-repo.org/packages/"))
+(require 'package)
+
+;; Add  MELPA repo
+(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/") t)
 
-;; Initialize MELPA repo
-;(add-to-list 'package-archives '("melpa" . "http://melpa.milkbox.net/packages/"))
+(package-initialize)
 
-;(unless package-archive-contents (package-refresh-contents))
-;(package-initialize)
+(when (not package-archive-contents)
+  (package-refresh-contents))
 
 ;; Installed selected packages if they are not installed already
-;(defvar my-packages '()
-;  "A list of packages to ensure are installed at launch.")
+(defvar my-packages '(golden-ratio
+		      paredit)
+  "A list of packages to ensure are installed at launch.")
 
-;(dolist (p my-packages)
-;  (when (not (package-installed-p p))
-;    (package-install p)))
+(dolist (p my-packages)
+  (when (not (package-installed-p p))
+    (package-install p)))
 
 ;;;;;;;;;;;;;;;;;;
 ;; User Interface
     (progn
       (tool-bar-mode -1)))
 
-(load-theme 'wombat t)
+;(load-theme 'wombat t)
 
 ;; Highlight matching parentheses
 (show-paren-mode 1)
 (setq mouse-wheel-follow-mouse 't) ;; scroll window under mouse
 (setq scroll-step 1) ;; keyboard scroll one line at a time
 
-;; Enable ido-mode
-(require 'ido)
-(ido-mode t)
+;; Enable golden ratio mode
+(require 'golden-ratio)
+(golden-ratio-mode 1)
+
+;; Enable ido
+(setq ido-enable-flex-matching t)
+(setq ido-everywhere t)
+(ido-mode 1)
+
+;;;;;;;;;;;;;;;
+;; Key Bindings
+;;;;;;;;;;;;;;;
+;; Mac OS X key remapping
+;(setq mac-option-modifier 'super)
+;(setq mac-command-modifier 'meta)
+
+;; Use default winmove keybindings
+;; shift + arrow keys to move to other windows
+(windmove-default-keybindings)
+
 
 ;;;;;;;;;;
 ;; Paths
 ;;;;;;;;;;;;;;;;;
 
 ;; Depencency for some functions
-;(require 'cl)
+(require 'cl)
 
 ;; Enable auto-complete
 ;(require 'auto-complete-config)
 
 ;; Enable this option to use \C-n to select next suggestion,
 ;; \C-p to select previous suggestion.
-(setq ac-use-menu-map t)
+;(setq ac-use-menu-map t)
 
 ;; Enable flymake
 ;(require 'flymake)
 ;; No prompt for M-x compile
 ;(setq compilation-read-command nil)
 
-;; Mac OS X key remapping
-(setq mac-option-modifier 'super)
-(setq mac-command-modifier 'meta)
 
-;;;;;;;;;;;;
-;; F#
-;;;;;;;;;;;;
-;(require 'fsharp-mode)
+
+
 
 ;;;;;;;;;;;
 ;; Octave