Skip to content

Commit

Permalink
window-purpose: changed helm source
Browse files Browse the repository at this point in the history
  • Loading branch information
Bar Magal committed Sep 18, 2015
1 parent 7354852 commit dc58e4f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions layers/+window-management/window-purpose/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -80,16 +80,16 @@ PURPOSE defaults to the purpose of the current buffer."
(progn
(require 'helm-buffers)
(defvar window-purpose--current-purpose 'edit)

(defclass helm-source-purpose-buffers (helm-source-buffers)
((buffer-list :initform
(lambda ()
(mapcar #'buffer-name
(delq (current-buffer)
(purpose-buffers-with-purpose window-purpose--current-purpose)))))))

(defvar helm-source-purpose-buffers-list
(helm-make-source "Purpose buffers" 'helm-source-purpose-buffers)))))
(helm-make-source "Purpose buffers" 'helm-source-buffers
:buffer-list
(lambda ()
;; return names of buffers with the same purpose as current buffer,
;; excluding current buffer
(mapcar #'buffer-name
(delq (current-buffer)
(purpose-buffers-with-purpose
window-purpose--current-purpose)))))))))

(defun window-purpose/post-init-popwin ()
;; when popwin creates a popup window, it removes the `purpose-dedicated'
Expand Down

0 comments on commit dc58e4f

Please sign in to comment.