Commit graph

195 commits

Author SHA1 Message Date
Ade Attwood
208b1e542d refactor(shell): go back full terminal
After a long while in emacs gui trying the terminal inside emacs and using the
external terminal with tmux. I have now decided to back full terminal using
emacs in the terminal in a tmux pain, sort of the same way I was using vim
before I switched to emacs.
2021-07-10 20:57:09 +01:00
Ade Attwood
1270157bdf feat(emacs): completely refactor company and lsp mode
Update the lsp to improve the performance and editing experience. The completion
has been disabled so we can configure it manually to include snippets and file
paths into the company code completion.

Company has been configured to override the tab behaviour to always expand
snippets whenever there is a available snippet. The default behaviour is to
cycle through the completion.
2021-07-10 20:42:41 +01:00
Ade Attwood
ea87574031 chore(emacs): set column width to 80 chars 2021-07-10 20:36:32 +01:00
Ade Attwood
bb66289983 feat(shell): integrate the emacs better into the terminal
There a quite a few fixes and feature here to make the terminal experience of
emacs better. Most of this is only enabled when running in the terminal.

1) Better tmux integration with navigating between splits and also highlighting
the active window between emacs and tmux so you can better see the active window
you are working in.

2) Mouse and clipboard support through the x window manager so "yank" copies
text into the system clipboard

3) Changing the cursor style between insert and normal mode inside the terminal
this is not the case in default evil mode.
2021-07-08 09:03:27 +01:00
Ade Attwood
a5c86ed6f2 fix(emacs): disable web-mode-enable-auto-quoting
This was really annoying when using JSX. When adding a `=` it would always add
in the quotes to make `=""`, this is not good when writing JSX when a lot of the
time you want `={}`. Now that this is disabled I can make the decision of what I
want to add
2021-06-26 21:06:02 +01:00
Ade Attwood
471fb9168d feat(emacs): binding to CTRL-; to add semi colon at the end of the line
Now in insert mode when editing you can add a semi colon at the end of the
current line my pressing CTRL-;. This will then put the cursor after that ready
to continue the line or press enter to start a new line. This is inspired by
some old vim key bindings I had and a vscode plugin called coloniser.
2021-06-26 21:00:10 +01:00
Ade Attwood
8df6f7e798 fix(emacs): js import snippet had a syntax error in it 2021-06-26 20:58:56 +01:00
Ade Attwood
6540bdf68d refactor(emacs): load in c-sharp config
This was missed in a previous commit.
2021-06-26 20:55:22 +01:00
Ade Attwood
67630dcbbf feat(shell): add dkip alias to the ip address of a container
This alias will inspect a container and pull out the ip address so you can get
to it on the network without having to bind ports.
2021-06-26 20:47:25 +01:00
Ade Attwood
6976cfe1fa feat(emacs): add c-sharp support
This is only initial support. Most of the features are built-in to lsp-mode. I
have added some snippets to make my life a bit easier.

There a more tweaks coming but they are general in improving the editing
experience not just targeted at c-sharp.
2021-06-26 20:34:21 +01:00
Ade Attwood
bfe7d7af2a feat(bin): add merge-patch script 2021-06-25 05:55:03 +01:00
a3b0be161d feat(emacs): improve vterm config
This forces vterm buffers to be in the evil emacs state to basically
disable evil-mode to make vterm function more like a native terminal
emulator. I have also bound `C-o` to move to the previous buffer to
simulate the jump backward functionality of evil-mode. This seams to
be working better at the moment due to this always exiting the
buffer. Sometimes jump back can move in the same buffer and this is
not want we want when we are in a vterm buffer.
2021-05-16 20:13:11 +01:00
4b71e6bc0e fix(emacs): change window delete keybinding wd
The current keybinding was set to kill the buffer that was causing an
issue when there was a spit of the same buffers and you wanted to
close one. If your were in this situation them the buffer would be
deleted and both of the windows would close. This is not what I want
from the "delete window" command, the expected behaviour is to close
the one window and leave the other window. This is what
`evil-window-delete` dose. This prevents the buffer from getting
deleted and if it is the last buffer emacs would then close.
2021-05-16 20:00:59 +01:00
fbd607ce5d feat(emacs): add git snippet for the security footer 2021-05-01 14:34:36 +01:00
e48e616c6e fix(emacs): create typescript-tsx-mode
When editing typescript jsx files I was previously using rjsx-mode to
get the jsx highlighting and emmet `className` support. This now
splits out the tsx to ts like other packages like spacemacs and doom
do. This gives me better jsx support with typescript and not impacting
the ts mode that dose not play nicely with jsx.

This seems to be working better with the snippets I created for
spacemacs that works with rjsx-mode and override any functions that
need it for typescript-tsx-mode
2021-05-01 14:26:21 +01:00
3c2b34e98f feat(zsh): add "git add -p" alias
Alias "gap" to "git add -p" for patch adding of files
2021-04-30 20:51:09 +01:00
c704328466 fix(zsh): set the BAT_THEME variable to theme bat cli tool
Setting the bat theme so the cli tool will now integrate better with
the shell theme
2021-04-30 20:46:58 +01:00
2562204827 fix(emacs): move custom-set-variables out of the init.el
This is to stop the generated code from cluttering the init.el and it
can now be ignored by git
2021-04-16 20:49:53 +01:00
60509de1bf feat(fzf): add command for git check out 2021-04-16 20:49:01 +01:00
4296160d7d feat(emacs) add org reveal package 2021-04-16 19:58:03 +01:00
7cab7c158d feat(zsh): override command not found to add command not found link
When you run a shell command that is not found this will print out a
link to https://command-not-found.com to give more info on the
command and good docs on how to install the package that the command
came from. This can be built on to do other things like git suggestions
on common commands that are incorrect
2021-04-16 19:53:25 +01:00
0ced8a28b1 refactor(core): update code structure
This is the big re structure to all of the projects. I have decided to
go with the `GOPATH` format so all of the code is in one place and
organised inherently by code host / group / project
2021-03-16 20:22:26 +00:00
1e4968e1e1 feat(git): update merge-to to rebase onto target branch
Now when merging to it will rebase onto the target branch to make
merge-to work more. I was finding that it will fail and I was doing
the merge step all the time so now its built in.
2021-03-16 20:18:15 +00:00
7cf8c3fa53 feat(emacs): add code files to move away from spacemacs
This is the start to move away from spacemacs and to a custom emacs
config
2021-03-16 20:12:46 +00:00
d182275eb0 refactor(emacs): disable lsp breadcrumbs
This was after a recent update to lsp-mode / spacemacs when this feature was
enabled by default

See: c4ad14a73a/layers/+tools/lsp/README.org (breadcrumb-on-headerline)
2020-12-29 09:15:31 +00:00
72431d9b18 refactor(emacs): start playing with Hasklig font 2020-12-29 07:58:41 +00:00
755f41bcf8 feat(zsh): add fzf scripts 2020-12-28 21:12:43 +00:00
b7a3aabf49 feat(zsh): add dynamic path support 2020-12-28 21:11:58 +00:00
6c43582e35 feat(emacs): move to doom modeline 2020-12-28 19:46:12 +00:00
4ccb9323a1 fix(zsh): export go path to execute programmes installed with go get 2020-12-28 09:28:02 +00:00
b751a5f34b fix(zsh): disable base16 shell when in ssh session
When connecting to a workstation with this zshrc base16 will get in causing
issues in the theme on the client workstation
2020-12-28 09:22:43 +00:00
578d0b5f8b pref(zsh): improve start up time of zsh
Remove unused plugins and override composer plugin there was only one bit that
was really slow when evaluating the bin directory
2020-12-28 09:19:32 +00:00
766e50106e refactor(emacs): remove fringe color from theme
This gives the themes a move minimal and clean look.
2020-11-22 21:12:34 +00:00
4019c0a4eb improvement(code): remove line numbers and add defaultFormatter 2020-11-22 21:09:34 +00:00
9bb1595dec feat(emacs): make emacs open file to a line like a normal editor
When opening files in emacs from the terminal using the default command `+LINE`
is not really useful an no programs output files and lines in that format. All
programmes output a file like `path/to/file.ext:2` this is line 2 in the file
`path/to/file.ext` if you were to open this with the emacs command it would be
`emacs +2 path/to/file.ext`. With this commit you can use `emacs
path/to/file.ext:2` and it will open the file on line 2 like you would expect.

As a extra I have overridden the tmux open command to add the `--no-wait` to the
editor command so that we can continue to use the terminal window as the file is
open in emacs and we don't need to close the file to use the terminal.
2020-11-04 20:15:44 +00:00
b68fd82987 fix(emacs): sort out base16 terminal colors 2020-11-04 19:56:21 +00:00
b35513512b feat(shell): add docker ls -a alias dkls
This lists all container on the system event stopped ones. This is different to
`dkps` that only displays running container. Some times it is helpfully to
display stopped container for getting the id and viewing logs when debugging
crashing containers
2020-10-25 20:12:47 +00:00
1368b94faf fix(php): remove practically php bin export
This is now conflicting with phpenv and multiple php bin directories were
getting exported to the `PATH`
2020-10-25 20:10:36 +00:00
3464a86fb0 fix(emacs): zsh shell when inside emacs
When running zsh inside emacs base16 colors messes the colors. By using the
`INSIDE_EMACS` this excludes loading the shell color theme when running shells
inside emacs
2020-10-17 16:48:48 +01:00
ca5a928f55 feat(emacs): add spacemacs config
This was moved out of the private repo
2020-10-17 16:47:40 +01:00
e2adbf5e10 fix(emacs): stop tramp from hanging
When editing remote files in emacs via tramp it would just hang when the ssh
connection was made

See: https://www.emacswiki.org/emacs/TrampMode#toc9
2020-10-13 20:44:36 +01:00
bb5eb593b3 refactor(vscode): add ignoreTrimWhitespace to the settings 2020-09-21 20:12:27 +01:00
1787c434f8 feat(term): add alacritty and base16 colours
This add alacritty install and configuration. We are also include base16 for
terminal colours.
2020-09-20 21:13:11 +01:00
01d6024067 feat(vscode): get vscode installed and configured 2020-09-20 10:32:02 +01:00
80239af169 refactor(core): start to make dotfiles public
This is the first commit that brings the privet dotfiles to a public
reop previously this was all one puppet module. Now this has been split
out so I can put all of the private files in a private puppet module
2020-09-20 06:22:17 +01:00