From 8e1bbc3e758f21f92210a1d93e374428a3fafceb Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 14 Oct 2016 18:17:28 +0530 Subject: [PATCH] Emacs: Remove useless sh skeletons --- .emacs.d/lisp/mode-sh.el | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/.emacs.d/lisp/mode-sh.el b/.emacs.d/lisp/mode-sh.el index 75d502dc..d46e5fe4 100644 --- a/.emacs.d/lisp/mode-sh.el +++ b/.emacs.d/lisp/mode-sh.el @@ -71,11 +71,6 @@ The advantages of this function over the vanilla code are: ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; -(define-skeleton sh-command - "Insert a condition on command existence in path." - "Command name: " - > "command -v " @ str " >/dev/null 2>&1 " @ _) - (define-skeleton sh-commands-or-die "Insert a loop that exits if any of the commands is not found in path." "Command names: " @@ -86,17 +81,6 @@ The advantages of this function over the vanilla code are: "fi" > \n "done" > \n \n) -(define-skeleton sh-for - "Insert a for loop. See `sh-feature'. This overrides vanilla function." - "Index variable: " - > "for " str | "i" - '(setq v1 (skeleton-read "Index values: " "")) - (unless (string= v1 "") - (concat " in " v1)) - "; do" \n - > _ \n - "done" > \n) - (define-skeleton sh-ifcommand "Insert a test to check if command is found in path." "Command name: " @@ -104,11 +88,6 @@ The advantages of this function over the vanilla code are: > @ _ \n "fi" > \n) -(define-skeleton sh-redirect-to-null - "Insert a null redirection." - nil - ">/dev/null 2>&1") - (define-skeleton sh-while-getopts "Insert a getops prototype." "optstring: "