Setting file modes with Dired


I’ve been writing a lot of shell scripts recently in emacs. I used to go to a shell to `chmod u+x` the new scripts, but now I do it within Emacs:

  1. Do `M-x dired` from the buffer editing a new script. I’ll give you a Dired buffer rooted in that script’s directory.
  2. `C-s` to find the script’s entry and then press `M` to change its mode.
  3. Dired speaks symbolic modes, so I just use `u+x` (give user the execute permission)

Blogged to

The sound of a 5linx videophone demo downstairs. They sell for $200 and the monthly service is ~$30/mo. Dave is selling them, so let me know if you’re interested or would like to see one in action.


Write a Comment

Take a moment to comment and tell us what you think. Some basic HTML is allowed for formatting.

Reader Comments

Be the first to leave a comment!