multiple updates:
[emacs-init.git] / setup / gnuplot.el
diff --git a/setup/gnuplot.el b/setup/gnuplot.el
new file mode 100644 (file)
index 0000000..b0ed624
--- /dev/null
@@ -0,0 +1,14 @@
+(let ((dir (concat (file-name-directory
+                    (directory-file-name
+                     (file-name-directory (or load-file-name
+                                         (when (boundp 'bytecomp-filename) bytecomp-filename)
+                                         buffer-file-name))))
+                   (file-name-as-directory "gnuplot"))))
+  (add-to-list 'load-path dir)
+  (load (concat dir "autoload.el")))
+
+(defun gnuplot ()
+  (interactive)
+  (gnuplot-make-gnuplot-buffer)
+  (sit-for .1)
+  (switch-to-buffer "*gnuplot*"))
\ No newline at end of file