;; String Defuns ;;;;;;;;;;;;;;;;;;;;;;; ;;;###autoload (defun s-count-lines (s) "Get number of lines in a string" (length (s-lines s))) ;; Misc Defuns ;;;;;;;;;;;;;;;;;;;;;;;;; ;;;###autoload (defun what-face (pos) "Tells you the name of the face (point) is on." (interactive "d") (let ((face (or (get-char-property (point) 'read-face-name) (get-char-property (point) 'face)))) (if face (message "Face: %s" face) (message "No face at %d" pos)))) ;;;###autoload (defun what-col () (interactive) (message "Column %d" (current-column))) ;;;###autoload (defun what-bindings (key) (list (minor-mode-key-binding key) (local-key-binding key) (global-key-binding key))) ;;;###autoload (defun echo (msg &rest args) "Display MSG in echo-area without logging it in *Messages* buffer." (interactive) (let ((message-log-max nil)) (apply 'message msg args)))