Skip to content
Snippets Groups Projects
Commit 3dc13029 authored by Laurent's avatar Laurent
Browse files

dev #24 improve bokeh console & emacs integration

parent b819efbe
Branches
Tags
2 merge requests!1677Hotline master,!1672Dev#24 storytime import des articles au format ical
......@@ -16,7 +16,7 @@
*
* You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
* along with BOKEH; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
$base_path = realpath(dirname(__FILE__));
......@@ -34,4 +34,7 @@ require_once "library/startup.php";
setupOpac();
echo "Welcome to Bokeh " . BOKEH_RELEASE_NUMBER . "\n";
echo "Database: " . Zend_Registry::get('cfg')->sgbd->config->dbname . "\n\n";
?>
\ No newline at end of file
......@@ -668,3 +668,17 @@
(kill-buffer (current-buffer))
)
)
(defun phafi-console ()
"Opens a bokeh console"
(interactive)
(let ((buffer (generate-new-buffer "Bokeh console")))
(async-shell-command (concat
"cd " (phafi-root-dir) ";"
"php -d \"auto_prepend_file=console.php\" -d \"cli.prompt='\e[032mbokeh\e[034m> \e[0m'\" -a")
buffer)
(switch-to-buffer-other-frame buffer)
)
)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment