(Emacs|^)~Some general cleanup
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -17,3 +17,4 @@ TAGS
|
|||||||
/Emacs/.config/emacs/eln-cache/
|
/Emacs/.config/emacs/eln-cache/
|
||||||
/Emacs/.config/emacs/core.el
|
/Emacs/.config/emacs/core.el
|
||||||
/Emacs/.config/emacs/app.el
|
/Emacs/.config/emacs/app.el
|
||||||
|
/Emacs/.config/emacs/lang.el
|
||||||
|
|||||||
@@ -546,9 +546,7 @@ using.
|
|||||||
(interactive)
|
(interactive)
|
||||||
(let ((dir (if buffer-file-name
|
(let ((dir (if buffer-file-name
|
||||||
(file-name-directory buffer-file-name)
|
(file-name-directory buffer-file-name)
|
||||||
(if default-directory
|
default-directory))
|
||||||
default-directory
|
|
||||||
nil)))
|
|
||||||
(buf (eshell)))
|
(buf (eshell)))
|
||||||
(if dir
|
(if dir
|
||||||
(with-current-buffer buf
|
(with-current-buffer buf
|
||||||
|
|||||||
@@ -752,7 +752,8 @@ text. That's what this is mainly for.
|
|||||||
#+end_src
|
#+end_src
|
||||||
** Licensing
|
** Licensing
|
||||||
Loads [[file:elisp/license.el][license.el]] for inserting licenses.
|
Loads [[file:elisp/license.el][license.el]] for inserting licenses.
|
||||||
Licenses are important for distribution and attribution to be defined clearly.
|
Licenses are important for distribution and attribution to be defined
|
||||||
|
clearly.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package license
|
(use-package license
|
||||||
:straight nil
|
:straight nil
|
||||||
|
|||||||
@@ -116,8 +116,7 @@ Some bindings that I couldn't fit elsewhere easily.
|
|||||||
(use-package emacs
|
(use-package emacs
|
||||||
:straight nil
|
:straight nil
|
||||||
:general
|
:general
|
||||||
(general-def
|
("C-x d" #'delete-frame)
|
||||||
"C-x d" #'delete-frame)
|
|
||||||
|
|
||||||
(nmmap
|
(nmmap
|
||||||
"C--" #'text-scale-decrease
|
"C--" #'text-scale-decrease
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ all: $(OUT)
|
|||||||
|
|
||||||
$(OUT): $(DIST)/$(OUT)
|
$(OUT): $(DIST)/$(OUT)
|
||||||
|
|
||||||
$(DIST)/$(OUT): $(OBJECTS) $(SRC)/main.o | $(DIST)
|
$(DIST)/$(OUT): $(OBJECTS) $(DIST)/main.o | $(DIST)
|
||||||
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
|
$(CC) $(CFLAGS) $^ -o $@ $(LIBS)
|
||||||
|
|
||||||
$(DIST)/%.o: $(SRC)/%.c | $(DIST) $(DEPDIR)
|
$(DIST)/%.o: $(SRC)/%.c | $(DIST) $(DEPDIR)
|
||||||
@@ -141,9 +141,7 @@ the [[https://elpa.gnu.org/packages/nhexl-mode.html][page]] yourself.
|
|||||||
:mode "\\.bin")
|
:mode "\\.bin")
|
||||||
#+end_src
|
#+end_src
|
||||||
* C/C++
|
* C/C++
|
||||||
Setup for C and C++ modes via the cc-mode package. C and C++ are
|
Setup for C and C++ modes, using Emacs' default package: cc-mode.
|
||||||
great languages for general purpose programming. My preferred choice
|
|
||||||
when I want greater control over memory management.
|
|
||||||
** cc-mode
|
** cc-mode
|
||||||
Tons of stuff, namely:
|
Tons of stuff, namely:
|
||||||
+ ~auto-fill-mode~ for 80 char limit
|
+ ~auto-fill-mode~ for 80 char limit
|
||||||
@@ -453,9 +451,9 @@ points there.
|
|||||||
|
|
||||||
Here I configure the REPL for Haskell via the
|
Here I configure the REPL for Haskell via the
|
||||||
~haskell-interactive-mode~. I also load my custom package
|
~haskell-interactive-mode~. I also load my custom package
|
||||||
[[file:elisp/haskell-multiedit.el][haskell-multiedit]] which allows a user to create temporary
|
[[file:elisp/haskell-multiedit.el][haskell-multiedit]] which allows a
|
||||||
~haskell-mode~ buffers that, upon completion, will run in the REPL.
|
user to create temporary ~haskell-mode~ buffers that, upon completion,
|
||||||
Even easier than making your own buffer.
|
will run in the REPL. Even easier than making your own buffer.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package haskell-mode
|
(use-package haskell-mode
|
||||||
:hook
|
:hook
|
||||||
@@ -571,7 +569,7 @@ Emmet for super speed code writing.
|
|||||||
(("\\.html\\'" . "HTML Skeleton")
|
(("\\.html\\'" . "HTML Skeleton")
|
||||||
""
|
""
|
||||||
"<!doctype html>
|
"<!doctype html>
|
||||||
<html class='no-js' lang=''>
|
<html lang=''>
|
||||||
<head>
|
<head>
|
||||||
<meta charset='utf-8'>
|
<meta charset='utf-8'>
|
||||||
<meta http-equiv='x-ua-compatible' content='ie=edge'>
|
<meta http-equiv='x-ua-compatible' content='ie=edge'>
|
||||||
@@ -598,8 +596,8 @@ Emmet for super speed code writing.
|
|||||||
" </body>
|
" </body>
|
||||||
</html>"))
|
</html>"))
|
||||||
#+end_src
|
#+end_src
|
||||||
* Typescript
|
** Typescript
|
||||||
Kinda expressive, interesting.
|
A child language of javascript which compiles to it.
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
(use-package typescript-mode
|
(use-package typescript-mode
|
||||||
:defer t
|
:defer t
|
||||||
@@ -610,6 +608,7 @@ Kinda expressive, interesting.
|
|||||||
Common Lisp is a dialect of Lisp, the most /common/ one around. Emacs
|
Common Lisp is a dialect of Lisp, the most /common/ one around. Emacs
|
||||||
comes with builtin Lisp support of course, but a REPL would be nice.
|
comes with builtin Lisp support of course, but a REPL would be nice.
|
||||||
|
|
||||||
|
** Sly
|
||||||
Enter /SLY/. Sly is a fork of /SLIME/ and is *mandatory* for lisp
|
Enter /SLY/. Sly is a fork of /SLIME/ and is *mandatory* for lisp
|
||||||
development on Emacs.
|
development on Emacs.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user