HNHacker News
TopNewBestAskShowJobs

kaushalmodi

353 karma · joined July 12, 2016

Loves Emacs and command-line utilities. You can find me by the same username on GitHub, Gitlab, reddit and Twitter.

Blog: https://scripter.co

* Few projects:

- Org-mode + Hugo: https://ox-hugo.scripter.co

- Eless (A Better less): https://eless.scripter.co

submissionscomments
kaushalmodi··on Show HN: Vexlio – Create precise, beautiful diagrams
+1 for Linux version!
kaushalmodi··on Show HN: ProximityHash – Geohashes in Proximity
Reminds me of https://plus.codes . Check it out on a phone to get the Plus Code for your current location. (The Google Plus Code fetching feature is awesome on Google Maps Beta on Android.)
kaushalmodi··on Show HN: Monica, an open-source CRM to manage friends and family
I have a similar comment, just using Todoist instead.. I switched from RTM Pro to Todoist Premium few months back.
kaushalmodi··on What does “my other car is a cdr” mean?
If you have a list `(Odyssey Model-S)`, `car` will be `Odyssey`, `cdr` will be a list `(Model-S)`. You yet need to do a `car` on that.. So `(car (cdr ..))` will give you `Model-S`. `(cadr ..)` is short for `(car (cdr ..))`.
kaushalmodi··on Ask HN: Do you keep a developer diary?
I do time-stamping based note taking too using org-capture in emacs, and I also use tags to put my notes in some broad category. Tag auto-completion using counsel package does not need me to remember the exact tag string if it's used previously.
kaushalmodi··on Ask HN: Do you keep a developer diary?
Same thought as /u/ams6110.. if using emacs, give M-x org-capture a try. It does the time-stamping automatically, and you get stuff like org-agenda, TODO, expirting the notes to other formats, and other org goodies.
kaushalmodi··on Vy – A Vim-like in Python made from scratch
That was my first thought too; either the OP meant to write "Vim clone", or forgot to put "editor" after "Vim-like".
kaushalmodi··on GitPitch – Markdown Presentations for Devs on GitHub and GitLab
Cannot tell if you are serious.. If you can learn HTML, you cannot learn Markdown?

http://www.markdowntutorial.com

kaushalmodi··on Nim programming language
> Nowadays, I wouldn't recommend using Aporia for various reasons

On https://nim-lang.org/faq.html under "What about editor support?", Aporia is mentioned as the first option. Should it be moved lower in the list?

Anyways I use nim-mode in emacs, and it works great!

kaushalmodi··on Nim programming language
> Not all pages can have the same "section" style,

But they can have the same CSS styling (colors, fonts, responsiveness, etc) that ties the whole site together.

A good example that's at the top of my mind is this: https://hugodocs.info

It works great on desktop as well as phone, and a common theme is seen all across the site.

> the documentation page for example is just composed of a list of links and descriptions.

By the documentation page, I meant a page like this: https://nim-lang.org/docs/manual.html

That's a lot of good info but is not accessible in a good way on phone.

For sort of an equivalent reference, see https://hugodocs.info/templates/base/

It has a similar collection of help pages and the design is responsive too.

kaushalmodi··on Nim programming language
I dig the changes in the landing pages, but I wished the documentation pages got the same treatment. At present, the documentation is not readable easily on mobile browsers.

Are you considering converting the documentation pages to responsive design too?

Also the black and yellow theme looks great on the home page, but that theme loses its continuity on all the other pages. It's as if the home page was designed by a different person, the feature and other landing pages by someone else, and the documentation pages by someone else altogether.

kaushalmodi··on Nim programming language
Emacs.

I have the nim-mode and smart-compile packages installed, and I have bound F9 to compile the nim code in the current buffer, and run it in the emacs-inbuilt eshell.

I have configured so that the point and buffer switching 'does the right thing'.

- If the compilation fails, show the compilation buffer in the other window, and do not execute the binary, and keep the point in the code window.

- If the compilation passes, execute the binary in the other window.

- Now if the binary execution ends with showing the eshell prompt, move the point back to the other window (code window).

- If not, that is, if the eshell prompt does not show up, keep the point in the eshell buffer, because that most likely means that some user input is expected.

---

So my nim learning process goes as: type a code snippet, F9, type more, probably cause error, F9, fix that, F9, etc.

Config: [1] [2]

[1]: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-fi...

[2]: https://github.com/kaushalmodi/.emacs.d/blob/master/setup-fi...

kaushalmodi··on Ask HN: KISS company website: Wordpress, Square Space or roll my own?
A really good static site generator: [Hugo](gohugo.io).
kaushalmodi··on Show HN: Rebase-editor, a simple CLI app specifically for Git interactive rebase
Even if you don't use Emacs regularly, using Magit just for git operations might be worth it. Just have an Emacs config ready with Magit installed and use that as your "git user interface".

Every git operation I've done is effortless with Magit: interactive rebase, selective staging (line based, not just hunk based), cherry picking, reordering commits and squashing, creating/pushing to/deleting local/remote branches, viewing graphical branch log, .. (list goes on).

kaushalmodi··on Beautiful Racket v1.0
Any one using Emacs and tweaking it using elisp might also agree on the "Why Lisp?". In short, everything is an expression in Lisp languages -- Racket, Elisp, .. So one just codes as they think; they don't have to write separate statements to appease the language syntax.
kaushalmodi··on Show HN: Summarise all code annotation like TODO or FIXME
Thanks! Will give it a shot.
kaushalmodi··on Hugo 0.19 Released: Native Emacs Org-Mode Support
Great job with this release! Looking forward to directly adding org-mode based content instead of markdown.
kaushalmodi··on Show HN: Summarise all code annotation like TODO or FIXME
Please share when done.
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
Not, at least as per my experience trying to get Isso working and interacting with the developer for the first time: https://github.com/posativ/isso/issues/305. Spoiler: He helped me get Isso working!
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
I was able to set it up successfully. Details -- https://news.ycombinator.com/item?id=13713507
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
Update to self.. nope, it works! -- https://news.ycombinator.com/item?id=13713507
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
If anyone is reading this, I found Isso pretty easy to set up on localhost. (1) Installing Isso was a breeze; their documentation is top-notch -- https://posativ.org/isso/docs/install/ (2) I then updated my Hugo theme to support Isso -- https://gitlab.com/kaushalmodi/hugo-theme-refined. I use this setup for my work-blog where I serve the blog+comments from my work machine. Now I only need to get a hosting server so that I can do the comment serving for my public blog.
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
Can you please share how you set up Isso with Hugo? Thanks.
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
Can you please share your setup?
kaushalmodi··on Isso: A Commenting Server Similar to Disqus
So this wouldn't work with a static blog generated by something like Hugo, right?
kaushalmodi··on Fossil SCM
You are comparing Emacs with Notepad++. You are then not using Emacs as it's supposed to be.

The actual power of Emacs is realized once you learn elisp. Coding, documenting, commiting, blogging, browsing, file/dir manipulation, etc. all can be done efficiently using the same familiar buffer editing philosophy within Emacs.

kaushalmodi··on How To Write With Style (1999)
Yes! Thanks :)
kaushalmodi··on How To Write With Style (1999)
UPDATE: Thank you all for the suggestions. I will pick up Cat's Cradle next :)

By the way, the Keys to Great Writing is an awesome book. It has made me critique everything I write, in a good way. I even thought twice before submitting this comment.

UPDATE 2: Fix: Use the verb critique rather than critic (one who does that).

kaushalmodi··on How To Write With Style (1999)
I can't believe that this reference to Vonnegut comes up on HN, when I happen to come to a point in Keys to Great Writing by Stephen Wilburs where he mentions his name.

I had never heard of Vonnegut before this. Suggestion for a good book by him to start with?

Proof: https://imgur.com/U0Z2aKp

kaushalmodi··on Using tmux properly
ace-jump was a good package.

Now it is superceded by avy (by abo-abo on GitHub) in every way + new features.

For such packages that always have room for improvement and not related to core emacs functionality, it is better that they stay in external repositories on GNU Elpa or Melpa.

That way, older packages do not have to get tied with emacs core. Currently Ido package is in that situation. I used to use Ido, but now I use the ivy package instead. Some people prefer to use helm instead. I would not be affected at all if Ido was removed from the emacs core in future and moved to GNU Elpa.

← PreviousPage 7 of 8Next →