 (global-set-key (kbd "<C-next>") 'er/contract-region)
 
 ;; indentation-based folding
-(require 'yafolding)
-(define-key global-map (kbd "C-c C-f") 'yafolding)
-(define-key global-map (kbd "C-c M-f") 'yafolding-toggle-all)
-(define-key global-map (kbd "C-c C-b") 'yafolding-toggle-all-by-current-level)
-
+;; (require 'yafolding)
+;; (define-key global-map (kbd "C-c C-f") 'yafolding)
+;; (define-key global-map (kbd "C-c M-f") 'yafolding-toggle-all)
+;; (define-key global-map (kbd "C-c C-b") 'yafolding-toggle-all-by-current-level)
+

(package-initialize)
(unless (file-exists-p "~/.emacs.d/elpa/archives/melpa")
(package-refresh-contents))
; (package-refresh-contents)
;; define custom lisp directory and load all subdirectories too
(let ((default-directory "~/.emacs.d/site-lisp/"))
      (normal-top-level-add-to-load-path '("."))
      (normal-top-level-add-subdirs-to-load-path))
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/")

; try to keep windows within a max margin

(setq user-full-name "Jayesh Kumar Gupta"
      user-mail-address "jayeshkg@iitk.ac.in")

;; site-lisp stores manually maintained packages
(if (fboundp 'normal-top-level-add-subdirs-to-load-path)
    (let* ((my-lisp-dir "~/.emacs.d/site-lisp/")
           (default-directory my-lisp-dir))
      (progn
        (setq load-path (cons my-lisp-dir load-path))
        (normal-top-level-add-subdirs-to-load-path))))
(setq load-path (cons (expand-file-name "~/.emacs.d") load-path))

;; package-repositories
(require 'package)
