sashaafm

sashaafm

Blocks in Spacemacs - What do they mean/are?

Hi everyone. I’ve began using Spacemacs a couple of days ago (long time Sublime user with very little Vim experience) and I keep getting these blocks (the blue ones) and I don’t know what they mean.

They also seem to appear at the end of some lines (I thought they were the \n at first). I’ve been looking around but haven’t found a good beginner’s guide to Spacemacs (for Evil Mode)

Most Liked

NobbZ

NobbZ

I don’t like it beeing removed on save. This can create really much noise when contributing to projects in which whitespace has not been thought of when initially created.

For this reason I like having control over the exact point in time when I do a cleanup.

I don’t know if there is a proper binding, but I do use it very seldom, so I just do it like this: SPC : whitespace-cleanup.

Also there is a nice feature called batch mode in emacs, which does allow the following small thing:

for file in *.[hc]; do
  emacs --batch "$file" --eval '(setq-default indent-tabs-mode nil)' --eval '(whitespace-cleanup)' -f save-buffer
done

This is specialised for C-headers and Source-files, but can be modified easily by changing the glob in the first line. This does also remove tabs used for indent and replaces them with the correct amount of spaces configured for the given filetype.

gausby

gausby

I have my Emacs delete trailing whitespace and I think everyone should do that. I contribute to projects that has some whitespace and in those cases I use Magit to selectively choose what lines to stage and commit.

NobbZ

NobbZ

That are whitespacemarkers. They are just indicating that there is some whitespace left between the last printed character and the line end.

You will never see them between the beginning of a line and a printed character.

Where Next?

Popular in Questions Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
mgjohns61585
Could someone help me? I’m making my first elixir program, number guessing game. I can’t figure out how to convert the user’s guess from ...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
lastday4you
I wanted to check elixir version in phoenix because i found that my elixir is 1.5 but when i use Enum.chunk_by it said the function is un...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
msaraiva
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
564 43806 214
New
alice
Hey, Just curious what are the main benefits of Elixir compared to Clojure? When is Elixir more useful than Clojure and vice versa? Th...
New
nobody
Hi! In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir? Searched the docs for ip address and the web, no good results. Thanks!
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

We're in Beta

About us Mission Statement