Newer
Older
emacs_d / customizations / misc.el
@clewis clewis on 9 Nov 2023 607 bytes initial commit
;; Changes all yes/no questions to y/n type
(fset 'yes-or-no-p 'y-or-n-p)

;; shell scripts
(setq-default sh-basic-offset 2)
(setq-default sh-indentation 2)

;; No need for ~ files when editing
(setq create-lockfiles nil)

;; Go straight to scratch buffer on startup
(setq inhibit-startup-message t)

(setq inferior-lisp-program "sbcl")

;;
;; https://news.ycombinator.com/item?id=33359329
;;

(defun new-note ()
    (interactive)
    (insert "-------------------\n")
    (insert (shell-command-to-string "echo -n $(date \"+%Y-%m-%d %T\")"))
    (insert "\n"))
  
(global-set-key (kbd "C-c C-n") 'new-note)