Skip to content

Instantly share code, notes, and snippets.

@analogpixel
Created December 26, 2014 23:41
Show Gist options
  • Save analogpixel/a91ef854e85602e0a590 to your computer and use it in GitHub Desktop.
Save analogpixel/a91ef854e85602e0a590 to your computer and use it in GitHub Desktop.
Set a key to change the speedbar location
(defun sb-sk (k)
(setq default-directory k)
(speedbar-update-contents)
(speedbar-get-focus)
)
(global-set-key (kbd "C-c C-1") (lambda () (interactive) (sb-sk "c:/users/user/Desktop/") ))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment