3 Commits

Auteur SHA1 Bericht Datum
  10sr 4a61097cc2 Add 1 maand geleden
  10sr d8c602af59 Update 1 maand geleden
  10sr b8a557ff7a Overwrite bookmark when loading 5 maanden geleden
1 gewijzigde bestanden met toevoegingen van 15 en 1 verwijderingen
  1. +15
    -1
      emacs.el

+ 15
- 1
emacs.el Bestand weergeven

@@ -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))


Laden…
Annuleren
Opslaan