summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--csharp.el30
-rw-r--r--view-conf.el9
2 files changed, 38 insertions, 1 deletions
diff --git a/csharp.el b/csharp.el
new file mode 100644
index 0000000..8b83afc
--- /dev/null
+++ b/csharp.el
@@ -0,0 +1,30 @@
+;;; csharp.el --- Mode for CSharp -*- lexical-binding: t; -*-
+
+;; Copyright (C) 2022 李俊緯
+
+;; Author: 李俊緯 <mmemmew@gmail.com>
+;; Keywords: convenience, c, files, languages, 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:
+
+;; A little configuration for Csharp files
+
+;;; Code:
+
+(use-package "csharp-mode" 'csharp-mode)
+
+(provide 'csharp)
+;;; csharp.el ends here
diff --git a/view-conf.el b/view-conf.el
index d7ceeee..ee5eff3 100644
--- a/view-conf.el
+++ b/view-conf.el
@@ -157,7 +157,10 @@ targets.")
"/Users/durand/Desktop/Centre/Vidéos/"
"/Users/durand/Desktop/Centre/Musique/"
"/Users/durand/Downloads/"))
- (list "Messenger" "open" "-a" "Messenger")))
+ (list "Messenger" "open" "-a" "Messenger")
+ (list "temp d'écran" "open" "-b"
+ "com.apple.systempreferences"
+ "/System/Library/PreferencePanes/ScreenTime.prefPane")))
;;;###autoload
(defun durand-target-extra-arg (target)
@@ -357,3 +360,7 @@ If ARG is non-zero and the second bit is non-zero, toggle
(cond
((= (logand arg 2) 2)
(variable-pitch-mode 'toggle))))))
+
+;;; Press 'v' to scroll
+
+(define-key view-mode-map (vector ?v) #'View-scroll-page-forward)