mirror of
https://gitlab.com/eql/lqml.git
synced 2025-12-06 02:30:38 -08:00
revision
This commit is contained in:
parent
1473ec8271
commit
ccdf5b328e
2 changed files with 29 additions and 1 deletions
28
examples/advanced-qml-auto-reload/run.lisp
Normal file
28
examples/advanced-qml-auto-reload/run.lisp
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
(in-package :qml-user)
|
||||
|
||||
(require :asdf)
|
||||
|
||||
(push (merge-pathnames "./")
|
||||
asdf:*central-registry*)
|
||||
|
||||
(asdf:operate 'asdf:load-source-op :app)
|
||||
|
||||
(qset *quick-view*
|
||||
|x| 75
|
||||
|y| 75)
|
||||
|
||||
(defun option (name)
|
||||
(find name (ext:command-args) :test 'search))
|
||||
|
||||
;;; trivial auto reload of all QML files after saving any change
|
||||
|
||||
(when (option "-auto")
|
||||
(load "lisp/qml-reload/auto-reload"))
|
||||
|
||||
;;; for Slime after copying 'lqml-start-swank.lisp' from LQML sources
|
||||
;;; to your Slime directory, which is assumed to be '~/slime/'
|
||||
|
||||
(when (option "-slime")
|
||||
(load "~/slime/lqml-start-swank")) ; for 'slime-connect' from Emacs
|
||||
|
||||
(load "qml/.create-qml-loaders.lisp")
|
||||
Loading…
Add table
Add a link
Reference in a new issue