summary refs log tree commit diff
path: root/emacs.d/lisp/fcuny-commands.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2021-01-04 19:52:04 -0800
committerFranck Cuny <franck@fcuny.net>2021-01-04 19:52:04 -0800
commit88ab401adc83bea6e1f571c54093dbc7f521e080 (patch)
treee2ae9336119ee36707b0e76a6592f4fc8503a4ef /emacs.d/lisp/fcuny-commands.el
parentgit: store configuration under XDG_CONFIG_HOME (diff)
downloademacs.d-88ab401adc83bea6e1f571c54093dbc7f521e080.tar.gz
emacs: rename the directory
Diffstat (limited to 'emacs.d/lisp/fcuny-commands.el')
-rw-r--r--emacs.d/lisp/fcuny-commands.el27
1 files changed, 0 insertions, 27 deletions
diff --git a/emacs.d/lisp/fcuny-commands.el b/emacs.d/lisp/fcuny-commands.el
deleted file mode 100644
index a286e9f..0000000
--- a/emacs.d/lisp/fcuny-commands.el
+++ /dev/null
@@ -1,27 +0,0 @@
-(defun rename-this-buffer-and-file ()
-  "Renames current buffer and file it is visiting."
-  (interactive)
-  (let ((name (buffer-name))
-        (filename (buffer-file-name))
-        (read-file-name-function 'read-file-name-default))
-    (if (not (and filename (file-exists-p filename)))
-        (error "Buffer '%s' is not visiting a file!" name)
-      (let ((new-name (read-file-name "New name: " filename)))
-        (cond ((get-buffer new-name)
-               (error "A buffer named '%s' already exists!" new-name))
-              (t
-               (rename-file filename new-name 1)
-               (rename-buffer new-name)
-               (set-visited-file-name new-name)
-               (set-buffer-modified-p nil)
-               (message "File '%s' successfully renamed to '%s'" name (file-name-nondirectory new-name))))))))
-
-(defun uniquify-region-lines (beg end)
-  "Remove duplicate adjacent lines in region."
-  (interactive "*r")
-  (save-excursion
-    (goto-char beg)
-    (while (re-search-forward "^\\(.*\n\\)\\1+" end t)
-      (replace-match "\\1"))))
-
-(provide 'fcuny-commands)