Skip to content

Commit

Permalink
fix package command separator
Browse files Browse the repository at this point in the history
  • Loading branch information
chee committed May 15, 2017
1 parent 1d0e49f commit b24f5a4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -21,12 +21,12 @@ it goes away again when you are done with it

when you have helm all installed sweet to the beat las vegas, stick helm-frame.el somewhere you can require it from and do:

```elisp
```lisp
(require 'helm-frame)
(add-hook 'helm-after-action-hook 'helm-frame/delete)
(add-hook 'helm-cleanup-hook 'helm-frame/delete)
(setq helm-split-window-preferred-function 'helm-frame/window)
(add-hook 'helm-after-action-hook 'helm-frame-delete)
(add-hook 'helm-cleanup-hook 'helm-frame-delete)
(setq helm-split-window-preferred-function 'helm-frame-window)
```

## contributing
Expand Down
8 changes: 4 additions & 4 deletions helm-frame.el
Expand Up @@ -81,7 +81,7 @@ If FRAME is provided, then get display that frame is on."
(if frame frame nil)))


(defun helm-frame/create ()
(defun helm-frame-create ()
"Create a new helm-frame."
(let
((old-frame (window-frame))
Expand All @@ -92,21 +92,21 @@ If FRAME is provided, then get display that frame is on."
(lower-frame frame)
(select-frame-set-input-focus old-frame) frame))

(defun helm-frame/frame ()
(defun helm-frame-frame ()
"Return the current frame, or create a new one."
(let ((frame (or (helm-frame--frame-named "Helm") (helm-frame/create))))
(set-frame-width frame 80)
(set-frame-height frame 20)
(helm-frame--center-frame frame)
frame))

(defun helm-frame/window (window)
(defun helm-frame-window (window)
"Return helm-frame's window.
Takes WINDOW for compatability with 'helm-split-window-preferred-function'."
(frame-root-window (helm-frame/frame)))

(defun helm-frame/delete ()
(defun helm-frame-delete ()
"Throw the frame down a very deep well."
(delete-frame (helm-frame/frame)))

Expand Down

0 comments on commit b24f5a4

Please sign in to comment.