(scroll-bar-mode 0)
(tool-bar-mode 0)
- (menu-bar-mode 0)
+ (menu-bar-mode 1)
(setq debug-on-error t)
(setq inhibit-startup-message t)
#+END_SRC
-* Use-package
+* Package Management Tools
+
+** Use-package
Using [[https://github.com/jwiegley/use-package][use-package]] to manage emacs packages
#+END_SRC
+** El-get
+
+[[https://github.com/dimitri/el-get][El-get]] is package management tool, whicl allows to install external elisp package from any git repository not in mepla.
+Check out [[http://tapoueh.org/emacs/el-get.html][el-get]].
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (use-package el-get
+ :ensure t
+ :init
+ (add-to-list 'load-path "~/.emacs.d/el-get"))
+
+#+END_SRC
+
* Color and Fonts Settings
** highlight current line
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
-
+ (use-package org
+ :ensure t
+ :init
(setq org-startup-indented t)
(setq org-hide-leading-starts t)
(setq org-src-fontify-natively t)
(setq org-src-tab-acts-natively t)
(setq org-confirm-babel-evaluate nil)
+ (setq org-use-speed-commands t)
+ (setq org-completion-use-ido t))
(org-babel-do-load-languages
'org-babel-load-languages
'((python . t)
(C . t)
+ (perl . t)
(calc . t)
(latex . t)
(java . t)
(sqlite . t)
(js . t)))
- (setq org-use-speed-commands t
- org-completion-use-ido t)
-
-
#+END_SRC
** Org-bullets
** Worf Mode
-[[https://github.com/abo-abo/worf][worf]] mode is an extension of vi-like binding for org-mode
+[[https://github.com/abo-abo/worf][worf]] mode is an extension of vi-like binding for org-mode.
+In =worf-mode=, it is mapping =[=, =]= as =worf-backward= and =worf-forward= in global, wich
+cause we cannot input =[= and =]=, so here I unset this mappings. And redifined this two to
+=M-[= and =M-]=
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
(use-package worf
:ensure t
:commands worf-mode
- :init (add-hook 'org-mode-hook 'worf-mode))
-
+ :init (add-hook 'org-mode-hook 'worf-mode)
+ :config
+ (define-key worf-mode-map "[" nil)
+ (define-key worf-mode-map "]" nil)
+ (define-key worf-mode-map (kbd "M-[") 'worf-backward)
+ (define-key worf-mode-map (kbd "M-]") 'worf-forward))
#+END_SRC
+
** Task Management
** Capture
#+END_SRC
-* Eshell Setting
+** Multi-term
-Setting PATH environment variable
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (use-package multi-term
+ :ensure t)
+
+#+END_SRC
+
+** ace-link
+
+[[https://github.com/abo-abo/ace-link][ace-link]] is a package written by [[https://github.com/abo-abo][Oleh Krehel]]. It is convenient to jump to link in help mode, info-mode, etc
+Type =o= to go to the link
#+BEGIN_SRC emacs-lisp :tangle yes :results silent
- (setenv "PATH" (concat (getenv "PATH") ":/usr/local/bin"))
+ (use-package ace-link
+ :ensure t
+ :init
+ (ace-link-setup-default))
#+END_SRC
:ensure t
:init
(add-hook 'emacs-lisp-mode-hook 'color-identifiers-mode)
+
:diminish color-identifiers-mode)
#+END_SRC
+** Perl
+
+[[https://www.emacswiki.org/emacs/CPerlMode][CPerl mode]] has more features than =PerlMode= for perl programming. Alias this to =CPerlMode=
+
+#+BEGIN_SRC emacs-lisp :tangle yes :results silent
+
+ (defalias 'perl-mode 'cperl-mode)
+
+ (setq cperl-hairy t) ;; Turns on most of the CPerlMode options
+ (setq cperl-auto-newline t)
+ (setq cperl-highlight-variables-indiscriminately t)
+
+ ;(add-to-list 'load-path "~/.emacs.d/elisp/")
+ ;(require 'template)
+ ;(template-initialize)
+ ;(require 'perlnow)
+
+#+END_SRC
+
* Others
** Shell pop mode
** Smartparens mode
-**
+***