 (defun current-dir-name ()
   (nth 1 (split-string (pwd) "Directory ")))
 
-(require 'magit)
 (global-set-key (kbd "C-x m")
   '(lambda () (interactive) (magit-status (current-dir-name))))
 

(autoload 'e2wm:dp-edbi "e2wm-edbi" nil t)
(require 'edbi)

(require 'windmove)

(global-set-key (kbd "M-P") 'windmove-up)
(global-set-key (kbd "M-N") 'windmove-down)
(global-set-key (kbd "M-F") 'windmove-right)
(global-set-key (kbd "M-B") 'windmove-left)

(require 'web-beautify) ;; Not necessary if using ELPA package
(eval-after-load 'js2-mode
  '(define-key js2-mode-map (kbd "C-c b") 'web-beautify-js))
(eval-after-load 'json-mode

             (lambda ()
               (add-hook 'before-save-hook 'web-beautify-css-buffer t t))))

(show-paren-mode 1)
(setq org-log-done t)

(load-library "postack")

(require 'pabbrev)
(global-pabbrev-mode)

(zencoding-mode 1)
(add-hook 'sgml-mode-hook 'zencoding-mode)

(global-linum-mode)

;;To use abbrev-mode, add lines like this:
(add-hook 'php-mode-hook
  '(lambda () (define-abbrev php-mode-abbrev-table "ex" "extends")))

(add-hook 'js-mode-hook 'flymake-jshint-load)
(add-hook 'php-mode-hook 'flymake-php-load)

;; uniquify changes conflicting buffer names from file<2> etc
(setq uniquify-buffer-name-style 'reverse)
(setq uniquify-separator "/")
