all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Elisp newbie trying a derived mode
@ 2006-09-28 19:02 davex
  2006-09-28 20:35 ` Kevin Rodgers
       [not found] ` <mailman.7564.1159475819.9609.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 6+ messages in thread
From: davex @ 2006-09-28 19:02 UTC (permalink / raw)


Hello all, my first post here, and I've recently started coding elisp.
I want a simple method of interactively selecting multiple files or
directories, and passing the selection list to an external program.
My first thought was to tweak dired mode, so that I could just navigate
around dirs, marking files and dirs that I want (with 'm') and then
have a special key call dired-do-shell-command with something to
append each marked entry to a text file.

Question: is there something simpler than dired to tweak? All I really
need is the directory navigation and marking capability.

Another question: as long as I run dired first, the following code lets
me do M-x file-select-mode, showing a dired type buffer, and my
C-c k *does* print the message (yippee), but when I try to mark a
file with 'm', I get 'No subdir-alist in elisp'. Anyone know why?

(defun !fsm-keyfunc ()
  (interactive)
  (message "you pushed the key")
)
(defun !fsm-func ()
  (local-set-key "\C-ck" '!fsm-keyfunc)
)
(define-derived-mode file-select-mode
  dired-mode "file-select"
  "Major mode for file selection."
  (setq file-select-mode-hook '!fsm-func)
)

Thank you for your time! Any guidance will be greatly appreciated.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-10-03  7:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-28 19:02 Elisp newbie trying a derived mode davex
2006-09-28 20:35 ` Kevin Rodgers
     [not found] ` <mailman.7564.1159475819.9609.help-gnu-emacs@gnu.org>
2006-09-29  1:49   ` Elisp newbie trying a derived mode (clarifying intent) davex
2006-09-29  9:06     ` Mathias Dahl
2006-09-29 16:48       ` Kevin Rodgers
     [not found]       ` <mailman.7597.1159548604.9609.help-gnu-emacs@gnu.org>
2006-10-03  7:46         ` Mathias Dahl

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.