diff options
author | oskar <[email protected]> | 2024-05-22 19:45:16 +0200 |
---|---|---|
committer | oskar <[email protected]> | 2024-05-22 19:45:16 +0200 |
commit | e15ea0314ec24b96a926e7f0db69f3963438fbce (patch) | |
tree | 49b6d32a7bb8887d16ec795773909ae0c866cba8 /emacs | |
parent | de01077bfb714d824830108f6659a0608f4c3654 (diff) |
fixed .emacs to emacs
Diffstat (limited to 'emacs')
-rw-r--r-- | emacs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -25,3 +25,9 @@ (setq c-basic-offset 4) ; Tab width (but for C?) (find-file "/home/oskar/doc/how2emacs.txt") (switch-to-buffer "*scratch*") + +(defun lmid () + ;;Move cursor to the middle of the current line + (interactive) + (let ((line-length (- (line-end-position) (line-beginning-position)))) + (goto-char (+ (line-beginning-position) (/ line-length 2))))) |