Function: bs-set-configuration
bs-set-configuration is an interactive and byte-compiled function
defined in bs.el.gz.
Signature
(bs-set-configuration NAME)
Documentation
Set configuration to the one saved under string NAME in bs-configurations.
When called interactively ask user for a configuration and apply selected configuration.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/bs.el.gz
(defun bs-set-configuration (name)
"Set configuration to the one saved under string NAME in `bs-configurations'.
When called interactively ask user for a configuration and apply selected
configuration."
(interactive (list (completing-read "Use configuration: "
bs-configurations
nil
t)))
(let ((list (assoc name bs-configurations)))
(if list
(if (listp list)
(setq bs-current-configuration name
bs-must-show-regexp (nth 1 list)
bs-must-show-function (nth 2 list)
bs-dont-show-regexp (nth 3 list)
bs-dont-show-function (nth 4 list)
bs-buffer-sort-function (nth 5 list))
;; for backward compatibility
(funcall (cdr list)))
;; else
(ding)
(bs-message-without-log "No bs-configuration named %S." name))))