summaryrefslogtreecommitdiff
path: root/emacs/libs/utils.el
blob: df0c464742e96feab419bc5d9f3225aacd2db20e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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