summaryrefslogtreecommitdiff
path: root/emacs/libs/utils.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/libs/utils.el')
-rw-r--r--emacs/libs/utils.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/emacs/libs/utils.el b/emacs/libs/utils.el
new file mode 100644
index 0000000..df0c464
--- /dev/null
+++ b/emacs/libs/utils.el
@@ -0,0 +1,17 @@
+;;; utils.el --- Utility package
+;;; Commentary:
+;; None
+
+;;; Code:
+(require 'org-table)
+
+(defun csv-to-table (file)
+ "Turn a csv with ; separator in FILE to table."
+ (with-temp-buffer
+ (erase-buffer)
+ (insert-file-contents file nil 0 500)
+ (org-table-convert-region (point-min) (point-max) ";")
+ (buffer-string)))
+
+(provide 'utils)
+;;; utils.el ends here