Browse Source

emacs.el: fix indent

pull/1/head
10sr 10 years ago
parent
commit
3649c4ecc3
1 changed files with 29 additions and 28 deletions
  1. +29
    -28
      emacs.el

+ 29
- 28
emacs.el View File

@@ -75,15 +75,16 @@ IF OK-IF-ALREADY-EXISTS is true force download."
nil nil
"--output" "--output"
path path
"-L"
url url
)) ))
path)))) path))))
(ignore-errors (ignore-errors
(require 'url)
(url-copy-file url
path
ok-if-already-exists)
path)))
(require 'url)
(url-copy-file url
path
ok-if-already-exists)
path)))


;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; package ;; package
@@ -103,7 +104,7 @@ IF OK-IF-ALREADY-EXISTS is true force download."
gnuplot-mode gnuplot-mode
erlang erlang
) )
)
)


(when (require 'package nil t) (when (require 'package nil t)
(add-to-list 'package-archives (add-to-list 'package-archives
@@ -145,15 +146,15 @@ found, otherwise returns nil."
,@(mapcar (lambda (f) ,@(mapcar (lambda (f)
(unless (fboundp f) (unless (fboundp f)
`(progn `(progn
(message "Autoloaded function `%S' defined (%s)"
(quote ,f)
,libpath)
(autoload (quote ,f)
,libname
,(concat "Autoloaded function defined in \""
libpath
"\".")
t))))
(message "Autoloaded function `%S' defined (%s)"
(quote ,f)
,libpath)
(autoload (quote ,f)
,libname
,(concat "Autoloaded function defined in \""
libpath
"\".")
t))))
(or (eval functions) (or (eval functions)
`(,(eval feature)))) `(,(eval feature))))
(eval-after-load ,feature (eval-after-load ,feature
@@ -273,8 +274,8 @@ found, otherwise returns nil."
(defun my-w32-add-export-path (&rest args) (defun my-w32-add-export-path (&rest args)
"Add pathes ARGS for windows." "Add pathes ARGS for windows."
(mapc (lambda (path) (mapc (lambda (path)
(add-to-list 'exec-path (expand-file-name path)))
(reverse args))
(add-to-list 'exec-path (expand-file-name path)))
(reverse args))
(setenv "PATH" (setenv "PATH"
(mapconcat 'convert-standard-filename (mapconcat 'convert-standard-filename
exec-path exec-path
@@ -564,8 +565,8 @@ found, otherwise returns nil."
(defun my-set-ascii-and-jp-font (list) (defun my-set-ascii-and-jp-font (list)
"Set font configuration List." "Set font configuration List."
(let ((fspec1 (if (> emacs-major-version 22) (let ((fspec1 (if (> emacs-major-version 22)
;; font spec is available in emacs23 and later
(font-spec :family (nth 2 list) :size (nth 3 list))
;; font spec is available in emacs23 and later
(font-spec :family (nth 2 list) :size (nth 3 list))
(cons (nth 2 list) "jisx0208.*"))) (cons (nth 2 list) "jisx0208.*")))
(fspec2 (if (> emacs-major-version 22) (fspec2 (if (> emacs-major-version 22)
(font-spec :family (nth 2 list) :size (nth 3 list)) (font-spec :family (nth 2 list) :size (nth 3 list))
@@ -869,7 +870,7 @@ found, otherwise returns nil."
(require 'session nil t) (require 'session nil t)


(lazy-load-eval 'sql '(sql-mode) (lazy-load-eval 'sql '(sql-mode)
(require 'sql-indent nil t))
(require 'sql-indent nil t))


(and (fetch-library "https://raw.github.com/10sr/emacs-lisp/master/gtkbm.el" (and (fetch-library "https://raw.github.com/10sr/emacs-lisp/master/gtkbm.el"
t) t)
@@ -887,7 +888,7 @@ found, otherwise returns nil."
'("graph" . fundamental-mode)) '("graph" . fundamental-mode))
(add-to-list 'git-command-major-mode-alist (add-to-list 'git-command-major-mode-alist
'("log" . fundamental-mode))) '("log" . fundamental-mode)))
;; (setq git-command-default-options "-c color.ui=always")
;; (setq git-command-default-options "-c color.ui=always")
(define-key ctl-x-map "g" 'git-command)) (define-key ctl-x-map "g" 'git-command))


(and (fetch-library (and (fetch-library
@@ -1295,8 +1296,8 @@ found, otherwise returns nil."
(save-excursion (save-excursion
(set-buffer buf) (set-buffer buf)
(not (memq major-mode (not (memq major-mode
'(term-mode
eshell-mode))))))))
'(term-mode
eshell-mode))))))))
;; (setq bs-configurations (list ;; (setq bs-configurations (list
;; '("processes" nil get-buffer-process ".*" nil nil) ;; '("processes" nil get-buffer-process ".*" nil nil)
;; '("files-and-scratch" "^\\*scratch\\*$" nil nil ;; '("files-and-scratch" "^\\*scratch\\*$" nil nil
@@ -1903,7 +1904,7 @@ Optional prefix ARG says how many lines to unflag; default is one line."
"color.ui=always" "color.ui=always"
,@args) ,@args)
" ")) " "))
;; (eshell-git-shell-command-to-string args)
;; (eshell-git-shell-command-to-string args)
(if (require 'git-command nil t) (if (require 'git-command nil t)
(git-command (mapconcat 'shell-quote-argument (git-command (mapconcat 'shell-quote-argument
args args
@@ -2286,10 +2287,10 @@ ARG is ignored."
("grep" ("grep"
t t
,(concat "find . " ,(concat "find . "
"-path '*/.git' -prune -o "
"-path '*/.svn' -prune -o "
"-type f -print0 | "
"xargs -0 grep -nH -e "))
"-path '*/.git' -prune -o "
"-path '*/.svn' -prune -o "
"-type f -print0 | "
"xargs -0 grep -nH -e "))
) )
"Alist of rgrep command. "Alist of rgrep command.
Each element is in the form like (NAME SEXP COMMAND), where SEXP returns the Each element is in the form like (NAME SEXP COMMAND), where SEXP returns the


Loading…
Cancel
Save