summaryrefslogtreecommitdiff
path: root/.emacs.d
diff options
context:
space:
mode:
authorThanosApollo <[email protected]>2022-11-17 10:41:13 +0200
committerThanosApollo <[email protected]>2022-11-17 10:41:13 +0200
commit0d88ea993989a6255a5ca2704965b3bf9871906c (patch)
tree8b8f1434cd8e4061f0be728a20697e4ee7302574 /.emacs.d
parent9e107184e1aaf1c2dac192928f046f1bb3237ba2 (diff)
Seperate keys and custom functions
Diffstat (limited to '.emacs.d')
-rw-r--r--.emacs.d/lisp/init-keys.el19
-rw-r--r--.emacs.d/lisp/my-functions.el31
2 files changed, 50 insertions, 0 deletions
diff --git a/.emacs.d/lisp/init-keys.el b/.emacs.d/lisp/init-keys.el
new file mode 100644
index 0000000..7b1db29
--- /dev/null
+++ b/.emacs.d/lisp/init-keys.el
@@ -0,0 +1,19 @@
+;; init-keys.el
+
+;;Ibuffer
+;(global-set-key (kbd "C-x C-b") 'ibuffer)
+;;Counsel
+(global-set-key (kbd "M-;") 'counsel-M-x)
+;;Window control map
+(define-prefix-command 'window-control-map)
+(global-set-key (kbd "C-w") 'window-control-map)
+(global-set-key (kbd "C-c C-c") 'copy-region-as-kill)
+(define-key window-control-map (kbd "C-v") 'split-window-right)
+(define-key window-control-map (kbd "C-n") 'windmove-right)
+(define-key window-control-map (kbd "C-p") 'windmove-left)
+(define-key window-control-map (kbd "C-q") 'delete-window)
+;; (use-package god-mode
+;; :init
+;; (god-mode)
+;; :config
+;; (global-set-key (kbd "C-f") #'god-mode-all))
diff --git a/.emacs.d/lisp/my-functions.el b/.emacs.d/lisp/my-functions.el
new file mode 100644
index 0000000..8387d52
--- /dev/null
+++ b/.emacs.d/lisp/my-functions.el
@@ -0,0 +1,31 @@
+;;; package --- Summary
+;;; Commentary:
+;;; useful snippers of code for my daily use.
+;;; Code:
+
+(defun apollo/my-html-header ()
+ "Inset html boilerplate with boostrap link."
+ (interactive)
+ (insert
+"<!DOCTYPE html>
+<html lang=\"en\">
+ <head>
+ <meta charset=\"UTF-8\">
+ <meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">
+ <meta http-equiv=\"X-UA-Compatible\" content=\"ie=edge\">
+ <title>My Title</title>
+ <link rel=\"stylesheet\" href=\"./style.css\">
+ <link href=\"https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-Zenh87qX5JnK2Jl0vWa8Ck2rdkQ2Bzep5IDxbcnCeuOxjzrPF/et3URy9Bv1WTRi\" crossorigin=\"anonymous\">
+ </head>
+ <body>
+ <main>
+ <h1>Starting point</h1>
+ </main>
+ <script src=\"index.js\"></script>
+ </body>
+</html>" ))
+
+
+
+;;; my-functions.el ends here
+