about summary refs log tree commit diff
path: root/tools
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@google.com>2019-12-17T12·33+0000
committerVincent Ambo <tazjin@google.com>2019-12-17T12·33+0000
commitcaf23a9e2a6c0ad67058f469ec7cd4e5be0694a6 (patch)
treebdd793d78aed551e7f0f463039e27ff6c91ac29c /tools
parent940a9c580cd40b59afc743afc1265bfdc208453c (diff)
chore(emacs.d): Clean up unused functions r/177
Diffstat (limited to 'tools')
-rw-r--r--tools/emacs/config/functions.el23
1 files changed, 0 insertions, 23 deletions
diff --git a/tools/emacs/config/functions.el b/tools/emacs/config/functions.el
index 6024ce34cb..4c8aa162cf 100644
--- a/tools/emacs/config/functions.el
+++ b/tools/emacs/config/functions.el
@@ -15,22 +15,6 @@
           (goto-line target)))
     (setq-local display-line-numbers nil)))
 
-(defun untabify-buffer ()
-  (interactive)
-  (untabify (point-min) (point-max)))
-
-(defun indent-buffer ()
-  (interactive)
-  (indent-region (point-min) (point-max)))
-
-(defun cleanup-buffer ()
-  "Perform a bunch of operations on the whitespace content of a buffer.
-Including indent-buffer, which should not be called automatically on save."
-  (interactive)
-  (untabify-buffer)
-  (delete-trailing-whitespace)
-  (indent-buffer))
-
 ;; These come from the emacs starter kit
 
 (defun esk-add-watchwords ()
@@ -175,13 +159,6 @@ Including indent-buffer, which should not be called automatically on save."
          (last-window (car (seq-intersection right-windows bottom-windows))))
     (eq (current-buffer) (window-buffer last-window))))
 
-(defun inferior-erlang-nix-shell ()
-  "Start an inferior Erlang process from the root of the current
-  project."
-  (interactive)
-  (inferior-erlang
-   (format "nix-shell --command erl %s" (cdr (project-current)))))
-
 (defhydra mc/mark-more-hydra (:color pink)
   ("<up>" mmlte--up "Mark previous like this")
   ("<down>" mc/mmlte--down "Mark next like this")