diff options
author | JSDurand <mmemmew@gmail.com> | 2022-01-15 03:24:11 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2022-01-15 03:27:38 +0800 |
commit | a51356739139777809c4d79e24356aa97f63db49 (patch) | |
tree | 82e3344cac033d2c27d1527a17be263ea0a92ee7 /flymake-conf.el | |
parent | 249de03acdc876eade36b873766dc176584dbab3 (diff) |
clean up things & go to parent in file name completion
* basic.el (durand-delete-goto-parent-dir)
(minibuffer-local-filename-completion-map): The DEL key goes to the
parent directory when the cursor is before a forward slash
representing a directory name. This is bound in the keymap that is
only used when completing file names.
* flymake-conf.el (flymake-mode-map): Bind keys to the s-m prefix.
Also clean up the file.
* init.el (eshell): Start tracking time immediately.
(global-map, prepare-flymake): Prepare loading flymake by a
keybinding.
Diffstat (limited to 'flymake-conf.el')
-rw-r--r-- | flymake-conf.el | 38 |
1 files changed, 37 insertions, 1 deletions
diff --git a/flymake-conf.el b/flymake-conf.el index 651aa81..28f8c4e 100644 --- a/flymake-conf.el +++ b/flymake-conf.el @@ -1,3 +1,29 @@ +;;; flymake-conf.el --- My configurations for Flymake -*- lexical-binding: t; -*- + +;; Copyright (C) 2022 李俊緯 + +;; Author: 李俊緯 <durand@jsdurand.xyz> +;; Keywords: convenience, help, maint, tools + +;; This program is free software; you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see <https://www.gnu.org/licenses/>. + +;;; Commentary: + +;; Configure Flymake to my liking. + +;;; Code: + (require 'flymake) (setq flymake-fringe-indicator-position 'left-fringe) @@ -9,6 +35,16 @@ (setq flymake-wrap-around t) (define-key flymake-mode-map (vector ?\C-c ?! ?s) #'flymake-start) -(define-key flymake-mode-map (vector ?\C-c ?! ?d) #'flymake-show-diagnostics-buffer) +(define-key flymake-mode-map (vector ?\C-c ?! ?d) #'flymake-show-buffer-diagnostics) (define-key flymake-mode-map (vector ?\C-c ?! ?n) #'flymake-goto-next-error) (define-key flymake-mode-map (vector ?\C-c ?! ?p) #'flymake-goto-prev-error) + +(define-key global-map (vector ?\s-m) nil) +(define-key global-map (vector ?\s-m ?s) #'flymake-start) +(define-key global-map (vector ?\s-m ?m) #'flymake-mode) +(define-key global-map (vector ?\s-m ?d) #'flymake-show-buffer-diagnostics) +(define-key global-map (vector ?\s-m ?n) #'flymake-goto-next-error) +(define-key global-map (vector ?\s-m ?p) #'flymake-goto-prev-error) + +(provide 'flymake-conf) +;;; flymake-conf.el ends here |