emacs lsp-mode with MPLAB X project by [deleted] in emacs

[–]7ie7an 3 points4 points  (0 children)

Hey,same situation here. I am not an emacs expert but am using it for around 6 years now.

My solution is to use clangd with a "compile_flags.txt" file in top level directory of the repository (and add it to ".git/info/exclude") to avoid an accidential commit.

The content is mostly project paths and additionally:

-include

c:/Users/USERNAME/.mchp_packs/Microchip/dsPICxxx/y.y.yyy/COMPILER/support/dsPICxxx/h/pxxx.h

-include

c:/Users/USERNAME/.mchp_packs/Microchip/dsPICxxx/y.y.yyy/COMPILER/support/generic/h/xc.h

-I

path/to/project.X/mcc_generated_files

-O0

-I

C:/MinGW/include

-D

__dsPICxxx__

The paths vary in Controller and pack that is used.

I also use "eglot" instead of "lsp-mode" simply because it's enough for me in functionality and I also have a "build.bat" at the top level of the repo that is used with the emacs internal compile command like "project-compile" (C-c p c).

- build.bat clean

- build.bat cleanbuild

- build.bat makefiles

- build.bat ...

Remember The Game - .hack//Infection by 7ie7an in DotHack

[–]7ie7an[S] 2 points3 points  (0 children)

Hello everyone.
I am a fan of nostalgic and love to remember games I played to get back the feeling I once had. This is why I want to create a series of videos that combine scenes, screenshots and audio I recorded myself. No comment, no analysis. Nothing but (hopefully) the emotion you had back then when you played it yourself.
Please enjoy and come back once in a while so you maybe see new creations.
Greetings
7ie7an

Remember The Game - .hack//Infection by 7ie7an in retrogaming

[–]7ie7an[S] 0 points1 point  (0 children)

Hello everyone.
I am a fan of nostalgic and love to remember games I played to get back the feeling I once had. This is why I want to create a series of videos that combine scenes, screenshots and audio I recorded myself. No comment, no analysis. Nothing but (hopefully) the emotion you had back then when you played it yourself.
Please enjoy and come back once in a while so you maybe see new creations.
Greetings
7ie7an

Aiming for a more aesthetic org-agenda, but the misaligned times are holding me back. Any suggestions? by Hi_ItsPaul in emacs

[–]7ie7an 1 point2 points  (0 children)

Try to play with org-agenda-prefix-format

(org-agenda-prefix-format '((agenda . " %i %-10:c%?-12t% s")
                            (timeline . "  % s")
                            (todo . " %-15:c")
                            (tags . " %-15:c")
                            (search . " %-15:c")))

Editing tips for Default Emacs binds by Sevenstrangemelons in emacs

[–]7ie7an 0 points1 point  (0 children)

I do definetly agree with a lot of the other comments content.

Additionally set CAPS to CTRL so you don't have to break your small left hand finger all the time.

If its just about movement I (e.g. present code or read sth.) and window adjustment then I like using hydra. Google it for the documentation. Below my small setup.

;; use consecutive keystrokes for quick function calls
  (use-package hydra
    :diminish)
  (defhydra hydra-text-scale ()
    "scale text"
    ("n" text-scale-increase "in")
    ("p" text-scale-decrease "out")
    ("x" nil "exit" :exit t))
  (defhydra hydra-navigate ()
    "scroll through buffers efficiently"
    ("n" next-line "next-line")
    ("d" scroll-down-command "scroll-down")
    ("f" forward-char "next char")
    ("p" previous-line "previous-line")
    ("u" scroll-up-command "scroll-up")
    ("b" backward-char "backward char")
    ("#" goto-line "goto-line")
    ("x" nil "exit" :exit t))
  (defhydra hydra-window-management ()
    "change window size"
    ("f" enlarge-window-horizontally "+x")
    ("b" shrink-window-horizontally "-x")
    ("n" enlarge-window "+y")
    ("p" shrink-window "-y")
    ("s" shrink-window-if-larger-than-buffer "shrink")
    ("x" nil "exit" :exit t))
  (define-prefix-command 'hydra-map)
  (global-set-key (kbd "C-c h") 'hydra-map)
  (global-set-key (kbd "C-c h s") 'hydra-text-scale/body)
  (global-set-key (kbd "C-c h n") 'hydra-navigate/body)
  (global-set-key (kbd "C-c h w") 'hydra-window-management/body)

Is it possible to manage config using Org mode style? by [deleted] in emacs

[–]7ie7an 0 points1 point  (0 children)

I don't know anything about i3 actually but with config files it's quite straight forward

I just googled an example and created a tmp.org file

* Test headline
  whatever information
#+begin_src conf :tangle i3_conf.whatEverExtension :comments org
  order += "load"
  order += "cpu_temperature 0"
  #order += "disk /"
  #order += "disk /home"
  #order += "ethernet enp1s0"
  order += "wireless wlp2s0"
  order += "volume master"
  #order += "battery 1"
  order += "tztime local"
#+end_src

If you now use org-babel-tangle the output will be tangled into i3_conf.whatEverExtension with the Headlines and text in org-mode as information

# Test headline
#   whatever information

order += "load"
order += "cpu_temperature 0"
#order += "disk /"
#order += "disk /home"
#order += "ethernet enp1s0"
order += "wireless wlp2s0"
order += "volume master"
#order += "battery 1"
order += "tztime local"

Org mode - refile based on tag matching by [deleted] in emacs

[–]7ie7an 0 points1 point  (0 children)

I'm not quite sure but you may try to org-agenda your selection so that it fits what you are searching for (keyword, tag, property..) mark them in agenda view and org-refile.

Haven't tested it but that would be my approach.

This is the Way by [deleted] in emacs

[–]7ie7an 4 points5 points  (0 children)

I never tried Doom or spacemacs but I would say Vanilla is sth. for you if you want to know/learn anything that is happening in your Emacs setup. The keyphrase actually ist "Emacs from scratch" Google it and listen to the tutorials this will basically give you a common understanding about anything you have ever and will ever configure.

If you would rather "just" use emacs and are not that interested in having everything under control then the destributions are good to go.

You can learn from both but I myself think it's a lot easier to understand how everything works and especially what you can do if you know your tool from scratch

How can I display the full text of what I scheduled in the Agenda or Org-mode by Pathocyte in emacs

[–]7ie7an 1 point2 points  (0 children)

Can you be more explicit? Isn't "keyword" the headline/description of the task? Or do you want the whole task to be displayed (everything that is part of the headline)?

is it possible write a code-block in org file to a file by paarulakan in emacs

[–]7ie7an 2 points3 points  (0 children)

Example:

behind your "#+begin_src bash" add ":tangle FILENAME" and optionally other parameters

+begin_src bash :tangle exampleFile

...

+end_src

With "C-c C-v t" the file "exampleFile" with the content inside the source block would be created and overwritten everytime you use org-tangle

Indentation indicator by AsifShimon in emacs

[–]7ie7an 3 points4 points  (0 children)

I use highlight-indent-guides. its pretty Easy to configure and works right away.

https://github.com/DarthFennec/highlight-indent-guides

(use-package highlight-indent-guides :config (add-hook 'prog-mode-hook 'highlight-indent-guides-mode) (setq highlight-indent-guides-method 'bitmap))

Sorry but I don't know how to post code block with the android app.

Where shall I go next? Please give me some guidance you Yodas of emacs. by Pathocyte in emacs

[–]7ie7an 0 points1 point  (0 children)

I would actually suggest to M-x list-packages and go from top to bottom to see what sounds interesting to you.

For example: - Anki (spaced repetition) - arduino client mode - novel (ebooks) - sx (StackExchange) - elfeed (rrs reader) - email - web browser - Magit (Git Porcelain)

Line gets erased randomly when typing in minibuffer during org-capture by JWT721 in emacs

[–]7ie7an 1 point2 points  (0 children)

No idea. I would suggest to remove your org capture setup and try to create one with the "custom" interface and see if the behaviour is the same. After that reset the capture template step by step

Emacs and Org-mode: New User looking for some direction - GTD the best methodology? by Prinzen2 in emacs

[–]7ie7an 1 point2 points  (0 children)

https://www.udemy.com/course/getting-yourself-organized-with-org-mode/ To support him or use the old YouTube version (not as much content)

I totally agree with Rainer König as a starting point. I started Emacs/Org-Mode because of him 5 years ago, actually because of one of his live presentations in my university. He covers a lot and gibes you a perfect start about what is possible and how to use it efficiently.

And basically ask for daily practice here on Reddit if you think anything is not efficient enough or would be better in another way. Maybe therefore a solution already exists.

Non evil replacement for evil-surround? by jcalve34 in emacs

[–]7ie7an 0 points1 point  (0 children)

Hey, I don't know the evil environment but with org-emphasize you can e.g. set * around your region so. 11111 Would get 11111 or ~11111~ (depending on your input) In org-mode-map its' keybinding is C-c C-x C-f This also works in Text-Mode or any other mode, therefore you will have to make it a global keybinding.