I post short howtos and code snippets #emacs #elisp #cli
This profile is from a federated server and may be incomplete. Browse more on the original instance.
cragg, 5 months ago to emacs How to use wdired to delete files: Use find-name-dired to target files for deletion: Follow prompts to populate directory to search and file name pattern. C-x C-q to make the results buffer writeable (wdired) For each file you want to delete, press 'd' next to the file 'x' to execute deletion. #emacs #dired #wdired
How to use wdired to delete files:
cragg, 5 months ago @holgerschurig I tried to delete the filename then do C-c, but that didn't do anything. Any advice?
@holgerschurig I tried to delete the filename then do C-c, but that didn't do anything. Any advice?
cragg, 6 months ago to random My Emacs JSON starter pack: (use-package json-mode :ensure t) ;; Fires up a separate buffer where you can navigate JSON (buffer or region) (use-package json-navigator :ensure t :after json-mode) ;; Uses jq to format JSON in buffer (use-package jq-format :ensure t :after json-mode) ;; Uses jsonlint to detect malformed JSON (use-package flymake-json :ensure t) (add-hook 'json-mode-hook 'flymake-json-load)
My Emacs JSON starter pack: (use-package json-mode :ensure t)
;; Fires up a separate buffer where you can navigate JSON (buffer or region) (use-package json-navigator :ensure t :after json-mode)
;; Uses jq to format JSON in buffer (use-package jq-format :ensure t :after json-mode)
;; Uses jsonlint to detect malformed JSON (use-package flymake-json :ensure t)
(add-hook 'json-mode-hook 'flymake-json-load)
cragg, 6 months ago to emacs How to rename multiple files in dired: Mark files in dired: 'm' for each file at point. % R Enter regexp to rename from: (Unknown[-]?[0-9]?) Rename to: \1.jpg #emacs #dired
How to rename multiple files in dired:
cragg, 6 months ago @holgerschurig I'll post the wdired version of this next, but this way took fewer steps.
@holgerschurig I'll post the wdired version of this next, but this way took fewer steps.
cragg, 6 months ago to emacs How to rename a variable name: Move point on variable to rename M-s . (isearch-forward-symbol-at-point) C-M-% (query-replace-regexp) Enter replacement string Alternatively, rename variable within region: Select region C-M-% (query-replace-regexp) Enter string to replace Enter replacement string #emacs
How to rename a variable name:
Alternatively, rename variable within region: