-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add config for haskell and update config for org
- Add missing 'require' in electric-spacing-emacs-init.el file
- Loading branch information
Showing
4 changed files
with
59 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
;;; electric-spacing-text-mode.el--- Text mode tunings | ||
|
||
;; Copyright (C) 2021 Free Software Foundation, Inc. | ||
|
||
;; Author: William Xu <[email protected]> | ||
|
||
;; 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, 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 EMMS; see the file COPYING. If not, write to the | ||
;; Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, | ||
;; Boston, MA 02110-1301, USA. | ||
|
||
;;; Code: | ||
|
||
(require 'electric-spacing) | ||
|
||
;; (defun electric-spacing-haskell-mode-: () | ||
;; (electric-spacing-insert ":")) | ||
|
||
;; (if (eq 32 (char-after (line-beginning-position))) | ||
;; (electric-spacing-insert ":" 'middle) | ||
;; ;; define function signature | ||
;; (electric-spacing-insert ":"))) | ||
|
||
(defun electric-spacing-haskell-mode-. () | ||
(if (save-excursion (goto-char (line-beginning-position)) | ||
(looking-at "import")) | ||
(electric-spacing-insert "." 'middle) | ||
(electric-spacing-insert "."))) | ||
|
||
(defun electric-spacing-haskell-mode-- () | ||
(electric-spacing-insert "-")) | ||
|
||
(provide 'electric-spacing-haskell-mode) | ||
;;; electric-spacing-haskell-mode.el ends here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters