# Not using view mode because the major mode is special

**URL:** <https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301>\
**Category:** Troubleshooting\
**Created:** [November 27, 2023, 12:45pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301 "2023-11-27T12:45:38Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![ChuckSneed](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/chucksneed/32/1379_2.png) [@ChuckSneed](https://org-roam.discourse.group/u/ChuckSneed)\
**Post date:** [November 28, 2023, 3:45pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301/21 "2023-11-28T15:45:29Z")

</div>

yeah, now GIMP is able to display the svg file!

![interesting](https://global.discourse-cdn.com/free1/uploads/orgroam/original/2X/6/6cc3ccda36e498d6ec30bd17d73d8f939b1131b9.webp)

One weird stuff I noticed on my graph: it lists connections to the web URLs that I collect under my file `weblinks.org`. Why? I thought `org-roam-graph` would only build up the graph connections between the roam nodes with org-ID values?

---

<div class="post-metadata">

**Author:** ![akashp](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/akashp/32/1383_2.png) [@akashp](https://org-roam.discourse.group/u/akashp)\
**Post date:** [November 28, 2023, 3:47pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301/22 "2023-11-28T15:47:50Z")

</div>

very easy to solve it too!

`(setq org-roam-graph-link-hidden-types '("file" "http" "https"))` ; don’t render http/https links

set this variable.

---

<div class="post-metadata">

**Author:** ![ChuckSneed](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/chucksneed/32/1379_2.png) [@ChuckSneed](https://org-roam.discourse.group/u/ChuckSneed)\
**Post date:** [November 28, 2023, 3:51pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301/23 "2023-11-28T15:51:44Z")

</div>

![much_better](https://global.discourse-cdn.com/free1/uploads/orgroam/original/2X/b/bbeff4e6e8d0350ef0e4b76a8d642c54e72fc321.webp)  
Much much better. Thanks! Now I can see my graph on a sensible-sized canvas with no file:// nor http/s:// links cluttering it.

One question: I would expect your suggested `setq` modifications to be the default (especially the latest one that excludes the file:// and http:// links from the graph image building). But they aren’t. Should I add them to my init.el file as permanent changes?

---

<div class="post-metadata">

**Author:** ![akashp](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/akashp/32/1383_2.png) [@akashp](https://org-roam.discourse.group/u/akashp)\
**Post date:** [November 28, 2023, 4:09pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301/24 "2023-11-28T16:09:27Z")

</div>

Yes, code executed on scratch buffer doesn’t persist when emacs is restarted.

Add your changes to the init file. Also if you use a web browser to render the graphs, you can click on them to open the respective nodes on your emacs to see them or make edits if you set up `org-roam-protocol`.

Do you have `org-roam-protocol` set up too?

---

<div class="post-metadata">

**Author:** ![ChuckSneed](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/chucksneed/32/1379_2.png) [@ChuckSneed](https://org-roam.discourse.group/u/ChuckSneed)\
**Post date:** [November 28, 2023, 4:11pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301/25 "2023-11-28T16:11:46Z")

</div>

> [@akashp](#):
>
> Do you have `org-roam-protocol` set up too?

I have `(require 'org-roam-protocol)` line in my use-package declaration. So I guess that means yes. However, I never made use of it yet.

---

<div class="post-metadata">

**Author:** ![akashp](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/akashp/32/1383_2.png) [@akashp](https://org-roam.discourse.group/u/akashp)\
**Post date:** [November 28, 2023, 4:14pm UTC](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301/26 "2023-11-28T16:14:47Z")

</div>

you also need to make a `.desktop` file in `~/.local/share/applications/` and make some system changes for it to take effect: set it up later, here are the instructions : [Org-roam User Manual](https://www.orgroam.com/manual.html#org_002droam_002dprotocol)

[Previous page](https://org-roam.discourse.group/t/not-using-view-mode-because-the-major-mode-is-special/3301.md?page=1)
