Welcome to the Power Users community on Codidact!
Power Users is a Q&A site for questions about the usage of computer software and hardware. We are still a small site and would like to grow, so please consider joining our community. We are looking forward to your questions and answers; they are the building blocks of a repository of knowledge we are building together.
Activity for mcp
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #290158 | Initial revision | — | 5 months ago |
Answer | — |
A: Reset all buffer variables to default in Emacs `M-x kill-local-variable` `RET` `c-basic-offset` seems to work, but only temporarily. If I save, and close Emacs, and revisit the file, the changes do not persist. I that in an affected directory, each file must be visited and a permanent version of this must be performed. Not ideal. (more) |
— | 5 months ago |
Edit | Post #289923 |
Post edited: Fix typo |
— | 6 months ago |
Edit | Post #289923 |
Post edited: Mention spacemacs |
— | 6 months ago |
Edit | Post #289923 |
Post edited: Include application in title |
— | 6 months ago |
Edit | Post #289923 | Initial revision | — | 6 months ago |
Question | — |
Reset all buffer variables to default in Emacs Question How do you clear local variable customizations in buffer? In other words, how do you reset all variables to default? Use case This may be useful in instances where you `M-x customize-variable` and want to force those changes to persist on an open buffer. If I have edited a `.c` f... (more) |
— | 6 months ago |
Edit | Post #289846 |
Post edited: Fix possible typo |
— | 6 months ago |
Suggested Edit | Post #289846 |
Suggested edit: Fix possible typo (more) |
helpful | 6 months ago |
Edit | Post #289895 |
Post edited: Change title |
— | 6 months ago |
Edit | Post #289895 | Initial revision | — | 6 months ago |
Question | — |
How to view history of tabs sent to devices in Firefox I will often send tabs to other devices for later viewing and sometimes these tabs get lost between power-ons or swiped away if I don't open them immediately. Is there a place where I can view the history of sent tabs and the path they traveled? (more) |
— | 6 months ago |
Comment | Post #287926 |
`TAB` = `C-i` is okay with me. I think still some text is missing in the mode question. If I get your point, either mode works. It would be convenient to `TAB` while in insert mode to correct, but I won't let this restrict the solution. (more) |
— | about 1 year ago |
Comment | Post #287926 |
Great point. Ideally yes I'd like it to be extensible.
> You mention but not the mode (normal or insert)? Note that = so if you map one you map the other.
>
> See also :h i_C-t.
I'm not understanding this part. I think some text got cut out. (more) |
— | about 1 year ago |
Edit | Post #287936 | Initial revision | — | about 1 year ago |
Question | — |
How to update log diff buffer with cursor MWE Using magit: 1. Open log buffer: `ll`. 2. Open a commit diff: `ENT`. 3. Go back to log buffer without closing diff: `window-other`. Question Starting from the MWE above, is there a way to have the diff buffer update according to which commit your cursor is on? This would be very conv... (more) |
— | about 1 year ago |
Edit | Post #287926 |
Post edited: Make all headers level 1 |
— | about 1 year ago |
Edit | Post #287926 | Initial revision | — | about 1 year ago |
Question | — |
How to indent list items in Vim Problem How do I indent a list item in Vim the following way? Ideally I want this to happen automatically upon wrap, but will settle for something like `ESC TAB` doing the trick. Have ```txt This is a list: 1. This is a list item. 2. This is a long list item that I am wrapping at 72 charact... (more) |
— | about 1 year ago |
Edit | Post #287741 |
Post edited: Add location of hook |
— | about 1 year ago |
Edit | Post #287741 | Initial revision | — | about 1 year ago |
Question | — |
Change indent width in scad-mode MWE ```scad translate() square(); ``` Problem I'd like to set the number of spaces per indent in `scad-mode` to `2`. When I press tab on the second line in the MWE, it should result in: ```scad translate() square(); ``` Tried Tried setting `tab-width`, `c-basic-offset`, `sta... (more) |
— | about 1 year ago |
Comment | Post #287709 |
This is outstanding, thank you! Plus, if I figure out the cause of the black bar, the command becomes very clean and simple.
I am withholding marking this as the solution in the case that a grafx2 one comes along. (more) |
— | about 1 year ago |
Comment | Post #287703 |
I added the example images. Hope they help! (more) |
— | about 1 year ago |
Edit | Post #287703 |
Post edited: Add example images |
— | about 1 year ago |
Comment | Post #287703 |
I was considering this, but reasoned that it would be hard to portray the difference, besides the first taking up a lot more of the page, particularly with a white background.
Is the intended goal not clear without a picture? (more) |
— | about 1 year ago |
Edit | Post #287703 | Initial revision | — | about 1 year ago |
Question | — |
How to make background transparent and trim to content Question Is there a way in `grafx2` to make the background transparent and trim to content? This could be done during save. My process now when making images for documents is: 1. Make image in `grafx2`. 2. Open image in `gimp`. 3. Add alpha layer. 4. Select background by color. 5. Clear (... (more) |
— | about 1 year ago |
Comment | Post #287367 |
Very, very cool! Thank you for the thorough response! (more) |
— | over 1 year ago |
Comment | Post #287367 |
This is a very enlightening post. Please let me know if the following questions belong in their own post.
1\. Is there a way to view a list of all available `ex` commands like `delete`, `put`, etc.?
2\. I am used to registers being represented with `"`. Why is it `!` in this context and how did... (more) |
— | over 1 year ago |
Comment | Post #286805 |
Thank you for this. This is helpful. I'm still curious as to what the equivalent `magit` command would be. (more) |
— | over 1 year ago |
Edit | Post #286834 |
Post edited: Remove duplicate 'a'. |
— | over 1 year ago |
Comment | Post #286834 |
Very clear now, thank you! (more) |
— | over 1 year ago |
Suggested Edit | Post #286834 |
Suggested edit: Remove duplicate 'a'. (more) |
helpful | over 1 year ago |
Comment | Post #286831 |
This is a very nice way to simplify it, yes! You answered it correctly despite this late response. (more) |
— | over 1 year ago |
Comment | Post #286831 |
I am not sure how to change this, but you have my permission to organize it as you see fit! (more) |
— | over 1 year ago |
Comment | Post #286828 |
Incredible! Thank you for letting me in on your thought process. (more) |
— | over 1 year ago |
Edit | Post #286932 |
Post edited: Add final output |
— | over 1 year ago |
Edit | Post #286932 |
Post edited: Make intention clearer |
— | over 1 year ago |
Comment | Post #286834 |
> Counting the number of links is a classical way to distinguish leaf directories, that only have 2 of them (one from its parent, parent/leaf, and one in itself, leaf/.), of other directories.
In particular, I am caught up by:
> ... that only have 2 of them (...), of other directories. (more) |
— | over 1 year ago |
Edit | Post #287318 | Initial revision | — | over 1 year ago |
Answer | — |
A: How to redraw screen putting specific line at top without moving cursor The best I've come up with since, when the line in question is often returned to, is to go mark the line you want up top with `mz` and the line you are working on with `mw`. Returning your workspace to order then becomes: `'z` `zt` `'w`. (more) |
— | over 1 year ago |
Edit | Post #287311 | Initial revision | — | over 1 year ago |
Question | — |
How to redraw screen putting specific line at top without moving cursor MWE ```txt 5 4 3 2 1 0 ``` Go to the end of the file: `G`. Question Using spacemacs, how do I put the line with `3` at the top of the screen without moving the cursor? With moving the cursor that would be: `3k` `zt` `G`. Notes I use relative line numbering which explains the or... (more) |
— | over 1 year ago |
Edit | Post #286932 |
Post edited: Specify ex mode in problem statement |
— | over 1 year ago |
Edit | Post #286932 | Initial revision | — | over 1 year ago |
Question | — |
How to make selection and overwrite from register all from ex mode MWE ```txt line 1 line 2 line 3 line 4 line 5 line 6 line 7 ``` 1. Go to "line 4": `/line 4` `ENT`. 2. Delete into register: `dd`. 3. Replace everything with register using only ex mode. (Non-ex equivalent: `gg` `V` `G` `p`.) ```txt line 4 ``` Problem I am uncertain how to proc... (more) |
— | over 1 year ago |
Comment | Post #286828 |
Ah! That is very helpful! Did you come to that from `man xclip` or experience? (more) |
— | over 1 year ago |
Comment | Post #286831 |
These are good clarifying questions. I do not have any real hard requirement, besides it working in a linux terminal.
The less dependencies the solution comes with, the better. I was hoping for one that uses GNU coreutils, but there's no penalty to documenting other solutions.
I am using Arch ... (more) |
— | over 1 year ago |
Edit | Post #286831 |
Post edited: Fix typo |
— | over 1 year ago |