Kaynağa Gözat

Exit when no symbol at current point

master
10sr 6 yıl önce
ebeveyn
işleme
55a8c6ed25
İmzalayan: 10sr GPG Anahtar Kimliği: 7BEC428194130EB2
1 değiştirilmiş dosya ile 3 ekleme ve 2 silme
  1. +3
    -2
      emacs.el

+ 3
- 2
emacs.el Dosyayı Görüntüle

@@ -1496,7 +1496,8 @@ and search from projectile root (if projectile is available)."
(command-args
(if cmd
(concat cmd
(thing-at-point 'symbol t))
(or (thing-at-point 'symbol t)
(error "No symbol at point")))
(error "My-Rgrep: Command for rgrep not found"))))
(if (safe-require-or-eval 'projectile)
(projectile-with-default-dir (projectile-project-root)
@@ -1626,7 +1627,7 @@ This mode is a simplified version of `adoc-mode'."
`(,@result ,(buffer-substring-no-properties start
(point))))))
result)))
;; (apply 'concat (car (my-file-head "./emacs.el"))
;; (apply 'concat (my-file-head "./emacs.el" 10))

(set-variable 'dumb-jump-prefer-searcher 'rg)



Yükleniyor…
İptal
Kaydet