diff options
author | Matias Linares <matias.linares@comprandoengrupo.net> | 2023-09-25 09:33:17 -0300 |
---|---|---|
committer | Matias Linares <matias.linares@comprandoengrupo.net> | 2023-09-25 09:33:17 -0300 |
commit | 0f873d646031971dd37824181b65ce457576749e (patch) | |
tree | 4c897c8af19d50aa6746ec0c08b90b7b57046c4d /emacs/libs/utils.el | |
parent | 6c4c5513618105ea4ce081b04e0545c7c05431d8 (diff) | |
download | dotfiles-0f873d646031971dd37824181b65ce457576749e.tar.gz |
Add emacs configuration
Diffstat (limited to 'emacs/libs/utils.el')
-rw-r--r-- | emacs/libs/utils.el | 17 |
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 |