|
@@ -630,6 +630,16 @@ THEM are function and its args." |
|
|
(setq-default fill-column 80) |
|
|
(setq-default fill-column 80) |
|
|
;; (add-hook 'text-mode-hook 'turn-on-auto-fill) |
|
|
;; (add-hook 'text-mode-hook 'turn-on-auto-fill) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
;; kill ring |
|
|
|
|
|
(defun my-kill-ring-save-buffer-file-name () |
|
|
|
|
|
"Save current buffer file name to kill ring." |
|
|
|
|
|
(interactive) |
|
|
|
|
|
(let* ((str (or buffer-file-name |
|
|
|
|
|
default-directory)) |
|
|
|
|
|
(str (expand-file-name str))) |
|
|
|
|
|
(kill-new str))) |
|
|
|
|
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
|
|
;; title and mode-line |
|
|
;; title and mode-line |
|
|
|
|
|
|
|
@@ -1420,7 +1430,7 @@ THEM are function and its args." |
|
|
"Function for `bookmark-set-internal'. |
|
|
"Function for `bookmark-set-internal'. |
|
|
|
|
|
|
|
|
ORIG-FUNC is the target function, and ARGS is the argument when it is called." |
|
|
ORIG-FUNC is the target function, and ARGS is the argument when it is called." |
|
|
(bookmark-load bookmark-default-file) |
|
|
|
|
|
|
|
|
(bookmark-load bookmark-default-file t) |
|
|
(apply orig-func args) |
|
|
(apply orig-func args) |
|
|
(bookmark-save nil bookmark-default-file)) |
|
|
(bookmark-save nil bookmark-default-file)) |
|
|
|
|
|
|
|
@@ -2007,6 +2017,10 @@ ORIG-FUNC is the target function, and ARGS is the argument when it is called." |
|
|
(with-eval-after-load 'yaml-mode |
|
|
(with-eval-after-load 'yaml-mode |
|
|
(defvar yaml-mode-map (make-sparse-keymap)) |
|
|
(defvar yaml-mode-map (make-sparse-keymap)) |
|
|
(define-key yaml-mode-map (kbd "C-m") 'newline)) |
|
|
(define-key yaml-mode-map (kbd "C-m") 'newline)) |
|
|
|
|
|
(when (fboundp 'yaml-mode) |
|
|
|
|
|
(add-to-list 'auto-mode-alist |
|
|
|
|
|
'("\\.yaml\\.gotmpl\\'" . yaml-mode))) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
(with-eval-after-load 'html-mode |
|
|
(with-eval-after-load 'html-mode |
|
|
(defvar html-mode-map (make-sparse-keymap)) |
|
|
(defvar html-mode-map (make-sparse-keymap)) |
|
|