~/website

27cfe2af36dbd38eb2509886b10e13cdc12f721a — arthurmelton c34723c7 2 years ago
example
D example/blogs +0 -1
@@ 1,1 0,0 @@

blogs/
\ No newline at end of file

A example/blogs/Switching_to_emacs.md +16 -0
@@ 0,0 1,16 @@

+++
title = "Switching to Emacs"
date = "2023-3-17"
+++

I have been a vim user for a long time, using spacevim for most of my time using vim because it has most of what I want. 

Using vim is has been supper nice and minimal because it can run in a terminal and to install spacevim I need to run one command (besides installing vim). I love vim and will still use it. One thing I have always wished for is org mode in vim. The current vim libraries to add org mode to vim is not supper fleshed out or are not maintained anymore.

The main person to make me think about switching was that I was getting back into watching [Tsoding](https://www.youtube.com/channel/UCrqM0Ym_NbK1fqeQG2VIohg). I was watching how he uses Emacs and I think it would be harder to do the same in vim. I always admired how he could switch to new files, run shell commands, and effect the file system. In Vim you can do this but it requires plugins and maintaining. 

In Emacs I install the default Emacs (give it a actually good color scheme) and that is it, no searching the internet for vim plugins or asking people for there plugins, its all there. I know you can use something like `vim plug` to make the whole process easier but I want something that works. 

Emacs also makes it easy to switch because your favorite vim key binds are in Emacs. 

I was also using vim for all my coding projects and I think it works but once a project gets big enough vim is not a *fantastic* workflow. I think of Emacs as an actual IDE and vim for like smaller projects. I have not gotten supper good at configing Emacs and scripts but I think as I get better at Emacs the scripts will make it much easier to develop.

D example/pages +0 -1
@@ 1,1 0,0 @@

pages
\ No newline at end of file

A example/pages/about.md +19 -0
@@ 0,0 1,19 @@

+++
title = "About"
+++

# Me

I am a kid from 2006 that likes coding. My favorite language is rust. I
think its just an amazing language, but some other languages I have
used are C++, Assembly, C#, and Node / Js. I am not very good with
Assembly but have done some nasm programming but it was nothing
special. I like C++ and think that C would be a fun language to code
in too. I would not use Node / Js / Deno, for computer programs now but
I will code Js for browsers. C# is one of my least favorite programming
language and it is just the worst to me, I don't like that in C# you 
have a file, then a class, then a function its just so dumb. I love 
rust because I like the rich type system and I think that the compiler
is one of the best things, because it actually understands your code.
I think that rust does have a little bit of bloated binaries but I know
that languages like C# output way bigger for simpler things.

A example/pages/index.md +13 -0
@@ 0,0 1,13 @@

+++
title = "Home"
+++

# Arthur Melton

If you want to see my code, you can view it on [my git server][git] or
you can view it on [Github (mirror)][github]. Just note that my github
code is just a mirror and that is not where my actual development goes.

[github]: https://github.com/AMTitan
[git]: https://git.arthurmelton.com
[email]: me@arthurmelton.com

D example/static +0 -1
@@ 1,1 0,0 @@

static/
\ No newline at end of file

A example/static/main.css +354 -0
@@ 0,0 1,354 @@

/* stolen from pico.sh */

*,
::before,
::after {
  box-sizing: border-box;
}

::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
:-moz-focusring {
  outline: 1px dotted ButtonText;
}
:-moz-ui-invalid {
  box-shadow: none;
}

@media (prefers-color-scheme: light) {
  :root {
    --white: #6a737d;
    --code: #fff8d3;
    --code-border: #f0d547;
    --pre: #f6f8fa;
    --bg-color: #fff;
    --text-color: #24292f;
    --link-color: #005cc5;
    --visited: #6f42c1;
    --blockquote: #005cc5;
    --blockquote-bg: #fff;
    --hover: #d73a49;
    --grey: #ccc;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --white: #f2f2f2;
    --code: #414558;
    --code-border: #252525;
    --pre: #252525;
    --bg-color: #282a36;
    --text-color: #f2f2f2;
    --link-color: #8be9fd;
    --visited: #bd93f9;
    --blockquote: #bd93f9;
    --blockquote-bg: #414558;
    --hover: #ff80bf;
    --grey: #414558;
  }
}

html {
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  font-size: 17px;
}

body {
  margin: 0 auto;
  max-width: 42rem;
}

img {
  max-width: 100%;
  height: auto;
}

b,
strong {
  font-weight: bold;
}

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo,
    monospace;
  font-size: 0.8rem;
}

code,
kbd,
samp {
  background-color: var(--code);
  border: 1px solid var(--code-border);
}

pre > code {
  background-color: inherit;
  padding: 0;
  border: none;
}

code {
  border-radius: 0.3rem;
  padding: 0.15rem 0.2rem 0.05rem;
}

pre {
  border-radius: 5px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  background-color: var(--pre) !important;
}

small {
  font-size: 0.8rem;
}

summary {
  display: list-item;
}

hr {
  color: inherit;
  border: 0;
  margin: 0;
  height: 1px;
  background: var(--grey);
  margin: 2rem auto;
  text-align: center;
}

a {
  text-decoration: underline;
  color: var(--link-color);
}

a:hover,
a:visited:hover {
  color: var(--hover);
}

a:visited {
  color: var(--visited);
}

a.link-grey {
  text-decoration: underline;
  color: var(--white);
}

a.link-grey:visited {
  color: var(--white);
}

section {
  margin-bottom: 1.4rem;
}

section:last-child {
  margin-bottom: 0;
}

header {
  margin: 1rem auto;
}

p {
  margin: 1rem 0;
}

article {
  overflow-wrap: break-word;
}

blockquote {
  border-left: 5px solid var(--blockquote);
  background-color: var(--blockquote-bg);
  padding: 0.8rem;
  margin: 1rem 0;
}

blockquote > p {
  margin: 0;
}

ul,
ol {
  padding: 0 0 0 2rem;
  list-style-position: outside;
}

ul[style*="list-style-type: none;"] {
  padding: 0;
}

li {
  margin: 0.5rem 0;
}

li > pre {
  padding: 0;
}

footer {
  text-align: center;
  margin-bottom: 4rem;
}

dt {
  font-weight: bold;
}

dd {
  margin-left: 0;
}

dd:not(:last-child) {
  margin-bottom: 0.5rem;
}

figure {
  margin: 0;
}

.post-date {
  width: 130px;
}

.text-grey {
  color: var(--grey);
}

.text-2xl {
  font-size: 1.85rem;
  line-height: 1.15;
}

.text-xl {
  font-size: 1.55rem;
  line-height: 1.15;
}

.text-lg {
  font-size: 1.35rem;
  line-height: 1.15;
}

.text-sm {
  font-size: 0.875rem;
}

.text-center {
  text-align: center;
}

.font-bold {
  font-weight: bold;
}

.font-italic {
  font-style: italic;
}

.inline {
  display: inline;
}

.flex {
  display: flex;
}

.items-center {
  align-items: center;
}

.m-0 {
  margin: 0;
}

.mb {
  margin-bottom: 0.5rem;
}

.mr {
  margin-right: 0.5rem;
}

.ml {
  margin-left: 0.5rem;
}

.my {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.mx {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.mx-2 {
  margin-left: 1rem;
  margin-right: 1rem;
}

.justify-between {
  justify-content: space-between;
}

.flex-1 {
  flex: 1;
}

.layout-aside {
  max-width: 50rem;
}

.layout-aside aside {
  width: 200px;
}

.layout-aside img {
  border-radius: 5px;
}

#readme {
  display: none;
}

@media only screen and (max-width: 600px) {
  body {
    padding: 1rem;
  }

  header {
    margin: 0;
  }

  .layout-aside main {
    flex-direction: column;
  }

  aside {
    display: none;
  }

  #readme {
    display: block;
  }
}