[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Interactive string input and comparison
From: |
scm |
Subject: |
Interactive string input and comparison |
Date: |
29 Jun 2006 12:58:56 -0700 |
User-agent: |
G2/0.2 |
Greetings,
I am trying to write an interactive Elisp program that will take the
input of a string, and depending what the string is, run a shell
command. I also what to have an error printed if the given shell
command does not exist. This is my attempt at the code so far:
(defun ls ()
(interactive)
(prompt for input? variable?)
(if (string-match "ls" ))
(shell-command "ls -l)
Thanks in advance to anyone who can take the time to answer this
question.
- Interactive string input and comparison,
scm <=