Skip to content

Instantly share code, notes, and snippets.

@errge
Created July 3, 2020 15:49
Show Gist options
  • Save errge/a584ab67e9b189fea6d36c4186b9bd5e to your computer and use it in GitHub Desktop.
Save errge/a584ab67e9b189fea6d36c4186b9bd5e to your computer and use it in GitHub Desktop.
dot-emacs.el
;; (package-initialize)
(setq nce/accepted-version "26.3")
(load "/home/errge/work/nilcons-emacs/bin/init.elc" nil t)
(defun increment-number-at-point ()
(interactive)
(skip-chars-backward "0-9")
(or (looking-at "[0-9]+")
(error "No number at point"))
(replace-match (number-to-string (1+ (string-to-number (match-string 0))))))
(global-set-key (kbd "C-c +") 'increment-number-at-point)
(setq inhibit-startup-echo-area-message "errge"
compilation-read-command nil
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment