Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zonuexe/interface-detector
https://github.com/zonuexe/interface-detector
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/zonuexe/interface-detector
- Owner: zonuexe
- Created: 2016-06-28T13:17:23.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-06-28T13:17:59.000Z (over 8 years ago)
- Last Synced: 2024-10-27T05:25:17.370Z (about 2 months ago)
- Language: Emacs Lisp
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Emacs interface-detector
Arbitrate between some interactive interface. ([[https://emacs-helm.github.io/helm/][Helm]], [[https://www.gnu.org/software/emacs/manual/html_mono/ido.html][ido]] and [[https://www.emacswiki.org/emacs/anything][Anything]]...)
** Why
[[https://github.com/zonuexe/init-open-recentf.el][init-open-recentf]]
** Get Started
*** For users
#+BEGIN_SRC emacs-lisp
(setq interface-detector-interface 'helm)
#+END_SRC*** For Lisp package authors
#+BEGIN_SRC emacs-lisp
(require 'interface-detector)
(let ((interface-detector-expected '(anything helm ido)))
(interface-detector)) ;; return 'anything, 'helm, 'ido or NIL value
#+END_SRC
By constraining the expected value enclosed in let, to protect your code from damage when new interactive interface has added.