X-Git-Url: http://47.100.26.94:8080/?a=blobdiff_plain;ds=sidebyside;f=emacs.d%2Finit.el;h=ca3d88cff16bf6c2dff31560224475bf462ad986;hb=ead4f202d58421c31b50ef662d1ee5429543599c;hp=30bcab4a6d9394772c436dc37f01fde5a697b5c5;hpb=26822a21ae3aab75b407d75dcc79f4d935fd1e95;p=dotfiles.git diff --git a/emacs.d/init.el b/emacs.d/init.el index 30bcab4..ca3d88c 100644 --- a/emacs.d/init.el +++ b/emacs.d/init.el @@ -27,7 +27,6 @@ (add-to-list 'auto-mode-alist '("emacs\\'" . emacs-lisp-mode)) -(fringe-mode 0) @@ -45,6 +44,12 @@ ;; elscreen should be placed begin of https://github.com/knu/elscreen/issues/6 ;(elscreen-start) ;(require 'init-elscreen) +;(require 'elscreen) +;(custom-set-faces +; '(elscreen-tab-current-screen-face ((t (:background "Yellow" :foreground "black")))) +; '(elscreen-tab-other-screen-face ((t (:background "gray22" :foreground "black"))))) + + (require 'init-color-theme) @@ -136,7 +141,6 @@ (require 'init-key-binding) -(require 'linum-relative) (winner-mode 1) (global-set-key (kbd "C-c C-l") 'winner-redo) @@ -148,11 +152,9 @@ ;(require 'eyebrowse) ;(eyebrowse-mode t) -(require 'workgroups2) -;;;;(workgroups-mode 1) -(require 'minibuffer-line) +;;(require 'minibuffer-line) ;(minibuffer-line-mode 1) @@ -190,12 +192,96 @@ -;;; map C-W in minibuffer to delete word before cussor - - - -;(require 'evil-escape) +(require 'evil-escape) ;(setq-default evil-escape-delay 0.2) ;(setq evil-escape-excluded-major-modes '(dired-mode)) ;(setq-default evil-escape-key-sequence "jj") ;(evil-escape-mode 1) + + +;; --------------- +;; recent file +(require 'recentf) +(recentf-mode) +;(setq recentf-max-menu-items 100) + +;; http://www.emacswiki.org/emacs/RecentFiles +(defun recentf-ido-find-file () + "Find a recent file using Ido." + (interactive) + (let ((file (ido-completing-read "Choose recent file: " recentf-list nil t))) + (when file + (find-file file)))) + + + +;; http://stackoverflow.com/questions/11484225/fix-an-auto-complete-mode-and-linum-mode-annoyance +(ac-linum-workaround) + + +;; --------------------------------- +;; linum-relative + +(require 'linum-relative) + +(custom-set-variables + ;; custom-set-variables was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(fringe-mode (quote (4 . 0)) nil (fringe)) + '(ggtags-split-window-function (quote split-window-vertically)) + '(org-agenda-files (quote ("~/temp/org-note.org"))) + '(powerline-text-scale-factor 0.85)) + +;; maybe better to fix the size of line number rather scaled 0.8 +;; https://github.com/howardabrams/dot-files/blob/master/emacs.org +(custom-set-faces + ;; custom-set-faces was added by Custom. + ;; If you edit it by hand, you could mess it up, so be careful. + ;; Your init file should contain only one such instance. + ;; If there is more than one, they won't work right. + '(highlight-current-line-face ((t (:background "gray22")))) + '(linum ((t (:background "#000000" :foreground "gray40" :height 0.8 :slant italic :weigth light)))) + '(linum-relative-current-face ((t (:inherit linum :foreground "Yellow" :weight light :height 0.8)))) + '(mode-line ((t (:foreground "#030303" :background "#bdbdbd" :box nil :family "Source Code Pro for Powerline" :height 100)))) + '(mode-line-inactive ((t (:foreground "#f9f9f9" :background "#666666" :box nil :family "Source Code Pro for Powerline" :height 100))))) + + +;; enable linum-relative in programming mode +;https://github.com/howardabrams/dot-files/blob/master/emacs.org +(add-hook 'prog-mode-hook 'linum-mode) + + +;; hight current line +(require 'highlight-current-line) +(highlight-current-line-on t) + + + +;(defun pl-fringe-mode () +; "jfoewoif" +; (if linum-mode +; (fringe-mode '(4 . 0)) +; (fringe-mode '(0 . 0)))) + + +;(add-hook 'eshell-mode-hook 'pl-fringe-mode) +;(add-hook 'prog-mode-hook 'pl-fringe-mode) + + + + + +(require 'workgroups2) + + +(setq wg-prefix-key (kbd "C-c z")) +(setq wg-session-file "~/.emacs.d/.emacs_workgroups") +(setq wg-mode-line-display-on t) ; Default: (not (featurep 'powerline)) +(setq wg-flag-modified t) ; Display modified flags as well +(setq wg-mode-line-decor-left-brace "[" + wg-mode-line-decor-right-brace "]" ; how to surround it + wg-mode-line-decor-divider ":") +;(workgroups-mode 1) +