From c048f056172a2f0b23eee322bafa25a312d16a3b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Mon, 8 Jul 2013 15:28:30 +0900 Subject: [PATCH 1/5] remove bug --- emacs.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/emacs.el b/emacs.el index 75ee8ee..d8060cd 100644 --- a/emacs.el +++ b/emacs.el @@ -687,9 +687,7 @@ found, otherwise returns nil." "https://raw.github.com/10sr/emacs-lisp/master/remember-major-modes-mode.el") (require 'remember-major-modes-mode nil t) (remember-major-modes-mode 1) - (add-hook 'after-change-major-mode-hook - 'remember-major-modes-remember)) - + ) ;; Detect file type from shebang and set major-mode. (add-to-list 'interpreter-mode-alist From 07fb5bc53349c9b9944b67d2b5d2d003203c8879 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 18 Jul 2013 12:28:52 +0900 Subject: [PATCH 2/5] show groups in dired --- emacs.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/emacs.el b/emacs.el index 75ee8ee..b2330cf 100644 --- a/emacs.el +++ b/emacs.el @@ -1362,10 +1362,10 @@ If called intearctively, find word at point." (my-x-open (dired-get-filename t t))) (if (eq window-system 'mac) - (setq dired-listing-switches "-lhFG") - (setq dired-listing-switches "-lhFG --time-style=long-iso") + (setq dired-listing-switches "-lhF") + (setq dired-listing-switches "-lhF --time-style=long-iso") ) - (setq dired-listing-switches "-lhFG") + (setq dired-listing-switches "-lhF") (put 'dired-find-alternate-file 'disabled nil) ;; when using dired-find-alternate-file @@ -1431,7 +1431,7 @@ If called intearctively, find word at point." "https://raw.github.com/10sr/emacs-lisp/master/dired-list-all-mode.el" t) (lazy-load-eval 'dired-list-all-mode) - (setq dired-listing-switches "-lhFG") + (setq dired-listing-switches "-lhF") (add-hook 'dired-mode-hook (lambda () (define-key dired-mode-map "a" 'dired-list-all-mode) From e0c968d6e393c598728a2c4f450f878ab3c6b2c1 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 18 Jul 2013 23:21:18 +0900 Subject: [PATCH 3/5] fonts.conf add source code pro --- fonts.conf | 53 +++++++++++++++++++++++++++-------------------------- 1 file changed, 27 insertions(+), 26 deletions(-) diff --git a/fonts.conf b/fonts.conf index 833a32d..4238d83 100644 --- a/fonts.conf +++ b/fonts.conf @@ -5,31 +5,32 @@ - - serif - - DejaVu Serif - - - - serif - - monapo - - - - sans-serif - - DejaVu Sans - monapo - - - - monospace - - DejaVu Sans Mono - monapo - - + + serif + + DejaVu Serif + + + + serif + + monapo + + + + sans-serif + + DejaVu Sans + monapo + + + + monospace + + Source Code Pro + DejaVu Sans Mono + monapo + + From 5de59aeb0c640fb291d6da94c21b9d77a2a2e46b Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 3 Aug 2013 23:24:07 +0900 Subject: [PATCH 4/5] emacs.el: byte compile remember-major-modes-mode --- emacs.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/emacs.el b/emacs.el index d8060cd..8ac346d 100644 --- a/emacs.el +++ b/emacs.el @@ -684,7 +684,8 @@ found, otherwise returns nil." ;; some modes and hooks (and (fetch-library - "https://raw.github.com/10sr/emacs-lisp/master/remember-major-modes-mode.el") + "https://raw.github.com/10sr/emacs-lisp/master/remember-major-modes-mode.el" + t) (require 'remember-major-modes-mode nil t) (remember-major-modes-mode 1) ) From 04e789e689a83c234bc10b145da44bb660f49407 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Tue, 6 Aug 2013 13:41:55 +0900 Subject: [PATCH 5/5] fix bug of TMP env --- bashrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/bashrc b/bashrc index 447fa68..2cfe13c 100755 --- a/bashrc +++ b/bashrc @@ -46,18 +46,18 @@ fi ################################# -__search_string(){ - # __search_string str1 str2 +__match(){ + # __match str1 str2 # return 0 if str2 is found in str1 expr "$1" : ".*$2.*" >/dev/null } -if ! __search_string "$PATH" "$HOME/.local/bin" +if ! __match "$PATH" "$HOME/.local/bin" then PATH="${PATH}:${HOME}/.local/bin:$HOME/.local/lib/gems/bin" fi -if ismsys && ! __search_string "$PATH" /c/mingw/bin +if ismsys && ! __match "$PATH" /c/mingw/bin then PATH="$PATH:/c/mingw/bin:/c/mingw/msys/1.0/bin" fi @@ -67,7 +67,7 @@ fi # # http://superuser.com/questions/324613/installing-a-library-locally-in-home-directory-but-program-doesnt-recognize-it # without this ENV i cannot run tmux. another way is to use --disable-shared # when building tmux -if ! __search_string "$LD_LIBRARY_PATH" "$HOME/.local/lib" +if ! __match "$LD_LIBRARY_PATH" "$HOME/.local/lib" then export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$HOME/.local/lib" fi @@ -126,7 +126,7 @@ then export TMP=/tmp fi fi -export TMP="${TMP}/${USER}-tmp" +__match "$TMP" "${USER}-tmp" >/dev/null || export TMP="${TMP}/${USER}-tmp" export TEMP="$TMP" mkdir -p "$TMP"