tag:blogger.com,1999:blog-7773847580486821558.post2463155781520302381..comments2023-07-04T04:56:55.432-04:00Comments on Scott Frazer's Blog: Emacs: Using Bookmarked DirectoriesScott Frazerhttp://www.blogger.com/profile/02727761079827984966noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-7773847580486821558.post-63291264593650618812013-03-20T15:57:48.787-04:002013-03-20T15:57:48.787-04:00The correct way to add a hook to the ido is during...The correct way to add a hook to the ido is during ido-setup. If you<br />find that your binding keeps getting wiped out then the following might help.<br /><br />(add-hook 'ido-setup-hook 'ido-my-keys)<br />(defun ido-my-keys ()<br /> "Add my keybindings for ido."<br /> (define-key ido-file-dir-completion-map (kbd "$") 'my-ido-use-bookmark-dir))<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-7773847580486821558.post-11255593575319946932011-04-14T19:43:59.267-04:002011-04-14T19:43:59.267-04:00Thank you. Very good post and very useful.
I have...Thank you. Very good post and very useful.<br /><br />I have a question. I am using NT emacs with cygwin bash shell. The bookmark does not work in the bash shell.<br /><br />After some debugging I found that I have to add "#export path" for every line in the .bashrc_bmk file. Would any body tell me why?<br /><br />I have udpate the function a little to add "export path"<br /><br />(defadvice bookmark-write-file (after my-bookmark-to-shell activate)<br /> "Convert bookmarks to format bash and tcsh (yuck!) can use."<br /> (let (filename)<br /> (with-temp-buffer<br /> (dolist (bmk bookmark-alist)<br /> (if (listp (caadr bmk))<br /> (setq filename (cdr (assoc 'filename (cadr bmk))))<br /> (setq filename (cdr (assoc 'filename (cdr bmk)))))<br /> (unless (file-directory-p filename)<br /> (setq filename (file-name-directory filename)))<br /> (insert (car bmk) "=" filename)<br />;;; I add following line<br /> (insert "#export " (car bmk))<br /> (delete-char -1)<br /> (newline))<br /> (write-file "~/.bashrc_bmk")Trombonehttps://www.blogger.com/profile/01468350572387813829noreply@blogger.comtag:blogger.com,1999:blog-7773847580486821558.post-31602142512714669012009-12-20T17:45:19.906-05:002009-12-20T17:45:19.906-05:00Nice!
I made a small hack some time ago to make ...Nice! <br /><br />I made a small hack some time ago to make it possible to cd to a bookmarked directory in Eshell:<br /><br />http://www.emacswiki.org/emacs/EshellBmkMathias Dahlhttps://www.blogger.com/profile/14367336365716371033noreply@blogger.comtag:blogger.com,1999:blog-7773847580486821558.post-79937703065511030312009-12-18T20:14:19.333-05:002009-12-18T20:14:19.333-05:00I'm very excited about your blog! I discovered...I'm very excited about your blog! I discovered it through Planet Emacsen and the content so far has been very interesting. Please keep it coming.Anonymousnoreply@blogger.com