Skip to content

Commit

Permalink
a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
bard_simpson committed Jun 15, 2024
1 parent dc80038 commit f144f66
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions lisp/languages/my-c.el
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,14 @@ Backend is either symbol tags or lsp"
(add-variable-watcher 'my-c-backend
#'my-c-update-backend)

(defun my-copy-whole-buffer-as-kill ()
"Copy the content of whole current buffer onto `kill-ring'."
(interactive)
(kill-ring-save (point-min) (point-max)))
(defun my-copy-whole-buffer-as-kill (&optional msg-p)
"Copy the content of whole current buffer onto `kill-ring'.
If MSG-P is non-nil, say that content was copied."
(interactive "p")
(kill-ring-save (point-min) (point-max))
(when msg-p
(message "%s chars was COPIED!" (- (point-max) (point-min)))))

(defvar my-sport-map
(define-keymap
Expand Down
2 changes: 1 addition & 1 deletion lisp/misc/my-autosave.el
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

(leaf files
:hook ((text-mode-hook prog-mode-hook) . auto-save-visited-mode)
:custom (auto-save-interval . 2)) ;; default is 3
:custom (auto-save-interval . 5)) ;; default is 3

;;; my-autosave.el ends here
(provide 'my-autosave)

0 comments on commit f144f66

Please sign in to comment.