Browse Source

Add coment

master
10sr 5 years ago
parent
commit
4b11c1cbfa
Signed by: 10sr GPG Key ID: 7BEC428194130EB2
1 changed files with 18 additions and 13 deletions
  1. +18
    -13
      emacs.el

+ 18
- 13
emacs.el View File

@@ -800,15 +800,15 @@ found, otherwise returns nil."
;; Use gfind if available? ;; Use gfind if available?
"find")) "find"))
(findcmd (concat "set -eu; set -o pipefail; " (findcmd (concat "set -eu; set -o pipefail; "
"echo .; "
"echo ..; "
"command " find " -L . "
"-mindepth 1 "
"\\( -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune "
"-o -print "
"2> /dev/null "
"| "
"cut -b3-"))
"echo .; "
"echo ..; "
"command " find " -L . "
"-mindepth 1 "
"\\( -fstype 'sysfs' -o -fstype 'devfs' -o -fstype 'devtmpfs' -o -fstype 'proc' \\) -prune "
"-o -print "
"2> /dev/null "
"| "
"cut -b3-"))
(fdcmd (concat "set -eu; set -o pipefail; " (fdcmd (concat "set -eu; set -o pipefail; "
"echo .; " "echo .; "
"echo ..; " "echo ..; "
@@ -916,6 +916,11 @@ found, otherwise returns nil."
(setq auto-save-visited-interval 8) (setq auto-save-visited-interval 8)
(auto-save-visited-mode 1) (auto-save-visited-mode 1)


;; (add-to-list 'auto-save-file-name-transforms
;; `(".*" ,(concat user-emacs-directory "auto-save-dir") t))
;; (setq auto-save-interval 3)
;; (auto-save-mode 1)

(add-to-list 'completion-ignored-extensions ".bak") (add-to-list 'completion-ignored-extensions ".bak")
(set-variable 'completion-cycle-threshold nil) ;; NEVER use (set-variable 'completion-cycle-threshold nil) ;; NEVER use
(setq delete-by-moving-to-trash t) (setq delete-by-moving-to-trash t)
@@ -1972,8 +1977,8 @@ and search from projectile root (if projectile is available)."
(safe-require-or-eval 'projectile) (safe-require-or-eval 'projectile)
(projectile-project-p)) (projectile-project-p))
(projectile-with-default-dir (projectile-project-root) (projectile-with-default-dir (projectile-project-root)
(compilation-start command-args
'grep-mode))
(compilation-start command-args
'grep-mode))
(compilation-start command-args (compilation-start command-args
'grep-mode))) 'grep-mode)))


@@ -1991,8 +1996,8 @@ and search from projectile root (if projectile is available)."
(if (safe-require-or-eval 'projectile) (if (safe-require-or-eval 'projectile)
(projectile-with-default-dir (or (projectile-project-root) (projectile-with-default-dir (or (projectile-project-root)
default-directory) default-directory)
(compilation-start command-args
'grep-mode))
(compilation-start command-args
'grep-mode))
(compilation-start command-args (compilation-start command-args
'grep-mode)))) 'grep-mode))))




Loading…
Cancel
Save