|
@@ -225,25 +225,11 @@
|
|
(if (equal nil (equal major-mode 'org-mode))
|
|
(if (equal nil (equal major-mode 'org-mode))
|
|
(windmove-default-keybindings 'meta))
|
|
(windmove-default-keybindings 'meta))
|
|
|
|
|
|
-;; Delete trailing whitespaces, format buffer and untabify when save buffer
|
|
|
|
-;;(defun format-current-buffer()
|
|
|
|
-;; (indent-region (point-min) (point-max)))
|
|
|
|
-;;(defun untabify-current-buffer()
|
|
|
|
-;; (if (not indent-tabs-mode)
|
|
|
|
-;; (untabify (point-min) (point-max)))
|
|
|
|
-;; nil)
|
|
|
|
-;;(add-to-list 'write-file-functions 'format-current-buffer)
|
|
|
|
-;;(add-to-list 'write-file-functions 'untabify-current-buffer)
|
|
|
|
-;;(add-to-list 'write-file-functions 'delete-trailing-whitespace)
|
|
|
|
-
|
|
|
|
;; Mouse support
|
|
;; Mouse support
|
|
(xterm-mouse-mode 1)
|
|
(xterm-mouse-mode 1)
|
|
|
|
|
|
(setq mac-command-key-is-meta t)
|
|
(setq mac-command-key-is-meta t)
|
|
|
|
|
|
-(setq load-path (cons (expand-file-name "/opt/homebrew/Cellar/cmake/3.24.3/share/emacs/site-lisp/cmake/cmake-mode.el") load-path))
|
|
|
|
-(require 'cmake-mode)
|
|
|
|
-
|
|
|
|
(defun copy-line (arg)
|
|
(defun copy-line (arg)
|
|
"Copy lines (as many as prefix argument) in the kill ring"
|
|
"Copy lines (as many as prefix argument) in the kill ring"
|
|
(interactive "p")
|
|
(interactive "p")
|