#+END_SRC
+set custom file
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (setq custom-file "~/.emacs.d/custom.el")
+ (load custom-file)
+
+#+END_SRC
+
Switch the focus to help window when it appears
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(add-hook 'prog-mode-hook #'rainbow-delimiters-mode))
#+END_SRC
+
+** page-break-lines
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (use-package page-break-lines
+ :ensure t
+ :config
+ (turn-on-page-break-lines-mode))
+
+#+END_SRC
+
* Org-mode Settings
** Org-mode Basic setting
#+END_SRC
+** others
+
+refer to [[http://coldnew.github.io/coldnew-emacs/#orgheadline94][fancy todo states]]
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (setq org-todo-keywords '((sequence "☛ TODO(t)" "|" "✔ DONE(d)")
+ (sequence "⚑ WAITING(w)" "|")
+ (sequence "|" "✘ CANCELED(c)")))
+
+#+END_SRC
+
+extend org-mode's easy templates, refer to [[http://coldnew.github.io/coldnew-emacs/#orgheadline94][Extend org-modes' esay templates]]
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (add-to-list 'org-structure-template-alist
+ '("E" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC"))
+ (add-to-list 'org-structure-template-alist
+ '("S" "#+BEGIN_SRC sh\n?\n#+END_SRC"))
+ (add-to-list 'org-structure-template-alist
+ '("p" "#+BEGIN_SRC plantuml :file uml.png \n?\n#+END_SRC"))
+
+#+END_SRC
+
* Magit
[[https://github.com/magit/magit][Magit]] is a very cool git interface on Emacs.
;; (global-set-key (kbd "s-y") 'projectile-find-file)
(global-set-key (kbd "s-f") 'projectile-find-file)
- (global-set-key (kbd "s-[") 'next-buffer)
- (global-set-key (kbd "s-]") 'previous-buffer)
+ (global-set-key (kbd "s-[") 'persp-next)
+ (global-set-key (kbd "s-]") 'persp-prev)
(global-set-key (kbd "s-`") 'mode-line-other-buffer)
+ (global-set-key (kbd "s-n") 'persp-next)
+ (global-set-key (kbd "s-p") 'persp-prev)
+
;; someothers default mapping on super (command) key
(insert (concat "ls"))
(eshell-send-input)))))
- (global-set-key (kbd "M-`") (lambda ()
- (interactive)
- (eshell-here)))
+ ;; (global-set-key (kbd "M-`") (lambda ()
+ ;; (interactive)
+ ;; (if (buffer-name))))
#+END_SRC
(persp-mode)
:bind
(:map projectile-mode-map
- ("s-p" . projectile-persp-switch-project)))
+ ("s-t" . projectile-persp-switch-project)))
;; projectile-find-file
;; projectile-switch-buffer
#+END_SRC
+** Tabbar
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ ;; (use-package tabbar-ruler
+ ;; :ensure t
+ ;; :init
+ ;; (setq tabbar-ruler-global-tabbar t)
+ ;; (setq tabbar-ruler-global-ruler t)
+ ;; (setq tabbar-ruler-popu-menu t)
+ ;; (setq tabbar-ruler-popu-toolbar t)
+ ;; (setq tabbar-use-images t)
+ ;; :config
+ ;; (tabbar-ruler-group-by-projectile-project)
+ ;; (global-set-key (kbd "s-1") 'tabbar-forward-group)
+ ;; (global-set-key (kbd "s-2") 'tabbar-ruler-forward))
+
+#+END_SRC
+
* Programming
** Languages