Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix sudo-edit and turn off toolbar always.

  • Loading branch information...
commit e4045940c5c09be9cee46cecace22f5ca6ec2ab7 1 parent 92bf56f
@technomancy authored
View
2  starter-kit-bindings.el
@@ -2,8 +2,6 @@
;;
;; Part of the Emacs Starter Kit.
-;; TODO: switch to kbd invocations everywhere
-
;; You know, like Readline.
(global-set-key (kbd "C-M-h") 'backward-kill-word)
View
3  starter-kit-defuns.el
@@ -162,10 +162,9 @@ Symbols matching the text at point are put first in the completion list."
(update-directory-autoloads autoload-dir))))
(load autoload-file))
-;; TODO: fix this
(defun sudo-edit (&optional arg)
(interactive "p")
- (if arg
+ (if (or arg (not buffer-file-name))
(find-file (concat "/sudo:root@localhost:" (ido-read-file-name "File: ")))
(find-alternate-file (concat "/sudo:root@localhost:" buffer-file-name))))
View
1  starter-kit-misc.el
@@ -4,6 +4,7 @@
(when window-system
(setq frame-title-format '(buffer-file-name "%f" ("%b")))
+ (turn-off-tool-bar)
(tooltip-mode -1)
(turn-off-tool-bar)
(blink-cursor-mode -1))
Please sign in to comment.
Something went wrong with that request. Please try again.